Skip to content

Commit 7aabb91

Browse files
boneskulljoyeecheung
authored andcommitted
test: create Mocha config file; remove unneeded "exit" option (#336)
1 parent 7e591c2 commit 7aabb91

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.mocharc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"require": "intelli-espower-loader"
3+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"scripts": {
1313
"test": "npm run test-unit && npm run lint",
14-
"test-unit": "mocha --require intelli-espower-loader test/unit/*.test.js --exit",
15-
"test-all": "mocha --require intelli-espower-loader test/**/*.test.js --exit",
14+
"test-unit": "mocha test/unit/*.test.js",
15+
"test-all": "mocha test/**/*.test.js",
1616
"coverage": "nyc --reporter=html --reporter=text --reporter=text-summary npm test",
1717
"coverage-all": "nyc --reporter=lcov --reporter=text --reporter=text-summary npm run test-all",
1818
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",

0 commit comments

Comments
 (0)