diff --git a/.mocharc.jsonc b/.mocharc.jsonc new file mode 100644 index 00000000..4cde66cb --- /dev/null +++ b/.mocharc.jsonc @@ -0,0 +1,6 @@ +{ + "parallel": true, + "slow": 1000, + "timeout": 30000, + "spec": "./test/unit/*.js" +} diff --git a/package.json b/package.json index b0d8f436..e622039e 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "clean": "rm -rf node_modules/ build/ vendor/ .nyc_output/ coverage/ test/fixtures/output.*", "test": "npm run test-lint && npm run test-unit && npm run test-licensing", "test-lint": "semistandard && cpplint", - "test-unit": "nyc --reporter=lcov --reporter=text --check-coverage --branches=100 mocha --slow=1000 --timeout=30000 ./test/unit/*.js", + "test-unit": "nyc --reporter=lcov --reporter=text --check-coverage --branches=100 mocha", "test-licensing": "license-checker --production --summary --onlyAllow=\"Apache-2.0;BSD;ISC;MIT\"", "test-leak": "./test/leak/leak.sh", "docs-build": "documentation lint lib && node docs/build && node docs/search-index/build",