From 8f39a1403d3c94f3d51693e41843750352408cba Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Thu, 29 Mar 2018 08:32:54 +0100 Subject: Address numerous errors in test suites Many errors still remian. --- package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'package.json') 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", -- cgit v1.2.1