From 77bfad0307f4e5daea0584a30b0dcf24ccc9ec42 Mon Sep 17 00:00:00 2001 From: jw255 Date: Thu, 22 Feb 2018 16:57:45 +0000 Subject: restructuring of tests --- package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package.json') diff --git a/package.json b/package.json index 559efc7..15615c0 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "license": "UNLICENSED", "scripts": { "test": "mocha --reporter spec -r ts-node/register './**/*.test.ts'", + "test_unit": "mocha --reporter spec -r ts-node/register './**/*.unit.test.ts'", + "test_node": "mocha --reporter spec -r ts-node/register './**/*.node.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'", -- cgit v1.2.1 From f66a9fa7f132f41b2e40029f0fb535521c3fb716 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 24 Feb 2018 17:13:43 +0000 Subject: restructuring of tests + yarn install script --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 15615c0..ccdf7ad 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "main": "index.ts", "license": "UNLICENSED", "scripts": { - "test": "mocha --reporter spec -r ts-node/register './**/*.test.ts'", - "test_unit": "mocha --reporter spec -r ts-node/register './**/*.unit.test.ts'", - "test_node": "mocha --reporter spec -r ts-node/register './**/*.node.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'", "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'", -- cgit v1.2.1 From 80f5aeb37b3d997015238173499f4a067ec0c266 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 24 Feb 2018 19:34:20 +0000 Subject: tests now actually test what they are supposed to and catch errors if needed --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index ccdf7ad..26089b5 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "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": "mocha --reporter spec -r ts-node/register './test/**/*.routes.test.ts'", + "test:unit": "mocha --reporter spec -r ts-node/register './test/**/*.unit.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'", -- cgit v1.2.1