Skip to content

Commit cf271dd

Browse files
committed
Adjust mocha reporter config
Use spec reporter everywhere, except for live watching tests. For watching, use the dot reporter, as it's more concise.
1 parent 8f85cdb commit cf271dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.mocharc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module.exports = {
44
diff: true,
55
extension: ['ts'],
6-
reporter: 'dot',
6+
reporter: 'spec',
77
require: 'ts-node/register',
88
'watch-files': ['src/**/*.ts', 'test/unit/*.ts']
99
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"test": "tsc && bash scripts/test-all.sh",
1616
"test:mocha": "mocha test/unit/*.test.ts",
17-
"test:watch": "mocha test/unit/*.test.ts --watch",
17+
"test:watch": "mocha test/unit/*.test.ts --watch --reporter dot",
1818
"lint": "eslint --quiet --ext=ts src/",
1919
"format": "esformatter --config esformatter-config.json -i src/sync.js",
2020
"build:js": "tsc -d --declarationDir release/types --declarationMap",

0 commit comments

Comments
 (0)