diff options
| author | Tom Harley | 2018-03-29 08:32:54 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-03-29 08:32:54 +0100 |
| commit | 8f39a1403d3c94f3d51693e41843750352408cba (patch) | |
| tree | 4833fd458e1d8590d798b8d1ede14bfb487aadea /package.json | |
| parent | Merge branch 'testing-middleware' into development (diff) | |
| download | medicine-8f39a1403d3c94f3d51693e41843750352408cba.tar.gz medicine-8f39a1403d3c94f3d51693e41843750352408cba.zip | |
Address numerous errors in test suites
Many errors still remian.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/package.json b/package.json index 35ad135..b21bed5 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,14 @@ "main": "index.ts", "license": "UNLICENSED", "scripts": { - "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:routes: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'", - "test:routes:index": "mocha --reporter spec -r ts-node/register './test/**/*index.routes.test.ts'", - "test:routes:protocol": "mocha --reporter spec -r ts-node/register './test/**/*protocol.routes.test.ts'", + "_test": "NODE_ENV='test' mocha --reporter spec -r ts-node/register", + "test": "yarn _test './test/**/*.test.ts'", + "test:routes": "yarn _test './test/**/*.routes.test.ts'", + "test:unit": "yarn _test './test/**/*.unit.test.ts'", + "test:routes:db": "yarn _test './test/**/*database.unit.test.ts'", + "test:routes:auth": "yarn _test './test/**/*auth.routes.test.ts'", + "test:routes:index": "yarn _test './test/**/*index.routes.test.ts'", + "test:routes:protocol": "yarn _test './test/**/*protocol.routes.test.ts'", "docs": "typedoc --out 'docs' --readme 'README.md' --name 'St Andrews Junior Honours 2017/18 - Team BE4' --module commonjs --target ES6 --exclude '*.test.ts' --excludeExternals --includeDeclarations --ignoreCompilerErrors --disableOutputCheck 'src'", "run:postgres": "pg_ctl start", "start": "ts-node src/index.ts", |
