Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit a0fc8fb

Browse files
committed
Use mocha reporter
Revert "Use mocha spec reporter.", moving from the karma spec reporter back to the karma mocha reporter, just because it seems better supported and is part of the example-webextension standard we're trying to follow. Try to achieve the same effect using the built-in Karma option reportSlowerThan -- set it to a generous 40ms. This reverts commit 54299d2.
1 parent 865b947 commit a0fc8fb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

karma.conf.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const reporters = ["spec", "coverage"];
1+
const reporters = ["mocha", "coverage"];
22
if (process.env.COVERALLS_REPO_TOKEN) {
33
reporters.push("coveralls");
44
}
@@ -9,9 +9,7 @@ module.exports = function(config) {
99
browsers: ["Firefox"],
1010
frameworks: ["mocha"],
1111
reporters,
12-
specReporter: {
13-
showSpecTiming: true
14-
},
12+
reportSlowerThan: 40,
1513
coverageReporter: {
1614
dir: "build/coverage",
1715
reporters: [
@@ -41,7 +39,7 @@ module.exports = function(config) {
4139
"karma-coverage",
4240
"karma-firefox-launcher",
4341
"karma-mocha",
44-
"karma-spec-reporter"
42+
"karma-mocha-reporter"
4543
]
4644
});
4745
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"karma-coveralls": "^1.1.2",
2929
"karma-firefox-launcher": "^1.0.1",
3030
"karma-mocha": "^1.3.0",
31-
"karma-spec-reporter": "0.0.31",
31+
"karma-mocha-reporter": "^2.2.4",
3232
"mocha": "^3.2.0",
3333
"npm-run-all": "^4.0.2",
3434
"pontoon-to-webext": "^1.0.2",

0 commit comments

Comments
 (0)