From ea1ee67bdd02b2ea727c09cfef1784a61aa934f4 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 27 Mar 2018 03:50:17 +0100 Subject: 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. --- package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package.json') 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", -- cgit v1.2.1