From 407a5a3c6c1d6d4c170d7646f921bb6f2fb2f380 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 3 Mar 2018 16:18:01 +0000 Subject: now compiles. also added stubs for database testing --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 8359cf3..6ffbd00 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,11 @@ "main": "index.ts", "license": "UNLICENSED", "scripts": { - "test": "mocha --reporter spec -r ts-node/register './**/*.test.ts'", + "test": "mocha --reporter spec -r ts-node/register './test/**/*.test.ts'", + "test:routes": "mocha --reporter spec -r ts-node/register './test/**/*.routes.test.ts'", + "test:unit": "mocha --reporter spec -r ts-node/register './test/**/*.unit.test.ts'", + "test:db": "mocha --reporter spec -r ts-node/register './test/**/*database.unit.test.ts'", + "test:routes:index": "mocha --reporter spec -r ts-node/register './test/**/*index.routes.test.ts'", "docs": "typedoc --out 'docs' --readme 'README.md' --name 'St Andrews Junior Honours 2017/18 - Team BE4' --module commonjs --target ES5 --exclude '*.test.ts' --includeDeclarations --excludeExternals 'src'", "start": "ts-node src/index.ts", "lint": "tslint --fix --force -p './tsconfig.json'", @@ -45,6 +49,7 @@ "@types/passport": "^0.4.2", "@types/passport-local": "^1.0.32", "@types/sequelize": "^4.27.5", + "@types/supertest": "^2.0.4", "@types/uuid": "^3.4.3", "body-parser": "^1.18.2", "express": "^4.16.2", @@ -59,6 +64,7 @@ "reflect-metadata": "^0.1.12", "sequelize": "^4.32.7", "sequelize-typescript": "^0.6.2", + "supertest": "^3.0.0", "ts-node": "^3.3.0", "typescript": "^2.7.1", "uuid": "^3.2.1", -- cgit v1.2.1