aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorTom Harley2018-03-27 03:50:17 +0100
committerTom Harley2018-03-27 03:50:17 +0100
commitea1ee67bdd02b2ea727c09cfef1784a61aa934f4 (patch)
tree6bf1e8a086bd5250416307501147ee4fe942b87b /package.json
parentsmall fix (diff)
downloadmedicine-ea1ee67bdd02b2ea727c09cfef1784a61aa934f4.tar.gz
medicine-ea1ee67bdd02b2ea727c09cfef1784a61aa934f4.zip

Centralise test configuration and introduce SQLite

Tests now take their configuration from a new file test-db.ts. Additionally, this configuration sets up and uses an in-memory SQLite3 database for testing, to avoid writing to disk and to prevent edits to a current database.

Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/package.json b/package.json
index fadb260..9f08c51 100644
--- a/package.json
+++ b/package.json
@@ -54,6 +54,7 @@
"@types/passport": "^0.4.2",
"@types/passport-local": "^1.0.32",
"@types/sequelize": "^4.27.5",
+ "@types/sqlite3": "^3.1.1",
"@types/supertest": "^2.0.4",
"@types/uuid": "^3.4.3",
"@types/winston": "^2.3.8",
@@ -72,6 +73,7 @@
"reflect-metadata": "^0.1.12",
"sequelize": "^4.32.7",
"sequelize-typescript": "^0.6.2",
+ "sqlite3": "^4.0.0",
"supertest": "^3.0.0",
"ts-node": "^3.3.0",
"typescript": "^2.7.1",