Skip to content

Commit 0414ed2

Browse files
Fix test script quoting to run properly on Windows (#257)
* Fix test script quoting to run properly on Windows * Update test scripts with globs double quoted, but without --recursive flag * Added --fail-zero flag to tests to fail if no tests are found
1 parent e7f5ba2 commit 0414ed2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"scripts": {
5353
"lint": "eslint .",
5454
"verify-coverage": "nyc check-coverage --lines 90 --functions 90 --branches 90",
55-
"test-unit": "mocha --file test/unit/setup.test.js 'test/unit/**/*.test.js' --recursive",
56-
"test-coverage": "nyc --reporter=text --reporter=html mocha --file test/unit/setup.test.js 'test/unit/**/*.test.js' --recursive",
57-
"test-integration": "mocha --file test/integration/setup.test.js 'test/integration/**/*.test.js' test/integration/teardown.test.js --recursive --timeout 20000 --slow 5000",
55+
"test-unit": "mocha --file test/unit/setup.test.js \"test/unit/**/*.test.js\" --fail-zero",
56+
"test-coverage": "nyc --reporter=text --reporter=html mocha --file test/unit/setup.test.js \"test/unit/**/*.test.js\" --fail-zero",
57+
"test-integration": "mocha --file test/integration/setup.test.js \"test/integration/**/*.test.js\" test/integration/teardown.test.js --timeout 20000 --slow 5000 --fail-zero",
5858
"test": "npm run test-coverage && npm run verify-coverage && npm run test-integration"
5959
},
6060
"files": [

0 commit comments

Comments
 (0)