aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json15
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",