Skip to content

Commit b3b2707

Browse files
committed
Allow multiple reporters
1 parent ccb525b commit b3b2707

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

mocha-config.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"reporterEnabled": "spec, mocha-notifier-reporter"
3+
}

package-lock.json

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@types/lodash": "4.14.109",
2222
"@types/fs-readfile-promise": "3.0.0",
2323
"mocha": "5.2.0",
24+
"mocha-multi-reporters": "1.1.7",
2425
"mocha-notifier-reporter": "0.1.2",
2526
"chai": "4.1.2",
2627
"rimraf": "~2.6.2",
@@ -33,15 +34,15 @@
3334
},
3435
"scripts": {
3536
"clean": "rimraf coverage build tmp",
36-
"ci": "npm run format-check && npm run test",
37+
"ci": "npm run format-check && npm run lint && npm run test",
3738
"build": "tsc -p tsconfig.json",
38-
"dist": "tsc -p tsconfig.json --outDir ./bin --outFile ./bin/intermock.js",
39+
"dist": "tsc -p tsconfig.json --outDir ./bin",
3940
"watch": "tsc -w -p tsconfig.json",
4041
"lint": "tslint -t stylish --project \"tsconfig.json\"",
4142
"format-check": "./bin/format-check.sh",
4243
"format": "clang-format -i -style='{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}' src/*.ts test/*.ts",
4344
"test": "npm run test-only",
44-
"test-only": "mocha --reporter mocha-notifier-reporter -r ts-node/register test/**/*.spec.ts",
45+
"test-only": "mocha --reporter mocha-multi-reporters --reporter-options configFile=mocha-config.json --no-colors -r ts-node/register test/**/*.spec.ts",
4546
"test-watch": "./node_modules/watch-cli/bin/watch -p \"src/**/*.ts\" -c \"npm run build && npm run test\""
4647
},
4748
"author": "Ryan McDermott <[email protected]>",

0 commit comments

Comments
 (0)