1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 14:47:28 +00:00

coverage/chai support and some unit tests

1. added jest coverage support (#64)
2. added chai testing support
3. created new unit tests
This commit is contained in:
Irene (XiangYi) Chen
2018-01-03 18:12:41 -05:00
committed by Bowden Kelly
parent 780e30826c
commit d080f39b86
4 changed files with 92 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
"serve": "node dist/server.js",
"watch-node": "nodemon dist/server.js",
"watch": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"",
"test": "jest --forceExit",
"test": "jest --forceExit --coverage --verbose",
"build-ts": "tsc",
"watch-ts": "tsc -w",
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",
@@ -73,8 +73,9 @@
"@types/passport-facebook": "^2.1.3",
"@types/request": "^2.0.9",
"@types/supertest": "^2.0.4",
"concurrently": "^3.5.1",
"@types/shelljs": "^0.7.7",
"chai": "^4.1.2",
"concurrently": "^3.5.1",
"jest": "^21.2.1",
"node-sass": "^4.7.2",
"nodemon": "^1.13.0",