Add sqlite details to unit testing guide (#7603)

This commit is contained in:
Jason Prado 2020-09-04 03:27:43 -07:00 committed by GitHub
parent d2ef1d4b8c
commit 69706d7587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,14 +21,16 @@ Please note that this guide will not work if you are on Windows using the SQLite
`Supertest` allows you to test all the `api` routes as they were instances of [http.Server](https://nodejs.org/api/http.html#http_class_http_server)
`sqlite3` is used to create an on-disk database that is created and deleted between tests.
:::: tabs
::: tab yarn
`yarn add jest supertest`
`yarn add --dev jest supertest sqlite3`
:::
::: tab npm
`npm install jest supertest`
`npm install jest supertest sqlite3 --save-dev`
:::
::::
@ -89,7 +91,7 @@ The whole file will look like this:
"useNullAsDefault": true,
"pool": {
"min": 0,
"max": 15
"max": 1
}
}
}