Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 5548233

Browse files
committed
test: show pretty object diffs in console
1 parent 5667947 commit 5548233

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

karma.conf.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export default (config: Config): void => {
4747
},
4848
},
4949

50-
reporters: ['progress', 'coverage-istanbul'],
50+
reporters: ['progress', 'mocha', 'coverage-istanbul'],
51+
mochaReporter: {
52+
showDiff: true,
53+
},
5154
coverageIstanbulReporter: {
5255
reports: ['json'],
5356
fixWebpackSourcePaths: true,

package-lock.json

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"karma-coverage-istanbul-reporter": "^2.0.1",
7171
"karma-firefox-launcher": "^1.1.0",
7272
"karma-mocha": "^1.3.0",
73+
"karma-mocha-reporter": "^2.2.5",
7374
"karma-sinon": "^1.0.5",
7475
"karma-sourcemap-loader": "^0.3.7",
7576
"karma-webpack": "^3.0.0",

0 commit comments

Comments
 (0)