aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/package.json b/package.json
index ecc5756..e0aa817 100644
--- a/package.json
+++ b/package.json
@@ -4,10 +4,15 @@
"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:auth": "mocha --reporter spec -r ts-node/register './test/**/*auth.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'",
+ "lint:tests": "tslint --fix --force ./test/**/*",
"_gl-lint": "tslint -p './tsconfig.json'"
},
"repository": {
@@ -46,6 +51,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",
"@types/winston": "^2.3.8",
"body-parser": "^1.18.2",
@@ -63,6 +69,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",