Skip to content

Commit 855c6ff

Browse files
committed
fixed coverage tests
1 parent 97a3758 commit 855c6ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
],
7575
"scripts": {
7676
"test": "eslint lib && mocha --reporter spec",
77-
"travis": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
77+
"travis": "istanbul cover -x HotModuleReplacementPlugin.js -x JsonpMainTemplatePlugin.js -x NodeMainTemplatePlugin.js ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
7878
"lint": "eslint lib",
79-
"cover": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
79+
"cover": "istanbul cover -x HotModuleReplacementPlugin.js -x JsonpMainTemplatePlugin.js -x NodeMainTemplatePlugin.js node_modules/mocha/bin/_mocha -- -R spec",
8080
"publish-patch": "mocha && npm version patch && git push && git push --tags && npm publish"
8181
}
8282
}

test/TestCases.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ describe("TestCases", function() {
6161
describe(config.name, function() {
6262
categories.forEach(function(category) {
6363
describe(category.name, function() {
64+
this.timeout(10000);
6465
category.tests.forEach(function(testName) {
6566
var suite = describe(testName, function() {});
6667
it(testName + " should compile", function(done) {

0 commit comments

Comments
 (0)