Skip to content

Commit 464051c

Browse files
authored
Update package.json
Setting mocha timeout to 5 sec
1 parent bbeea17 commit 464051c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
"node": ">=6.12.3"
88
},
99
"scripts": {
10-
"test": "mocha && mocha --reporter mocha-sonar-generic-test-coverage > test-results.xml",
10+
"test": "mocha --timeout 10000 && mocha --reporter mocha-sonar-generic-test-coverage > test-results.xml",
1111
"coverage": "nyc mocha && nyc report --reporter=text-lcov > .nyc_output/coverage.lcov",
1212
"lint": "eslint lib --ext .js",
1313
"lint:fix": "eslint lib --ext .js --fix",
1414
"lint:report": "npm run lint -- -f checkstyle --output-file target/checkstyle.xml",
1515
"precommit": "lint-staged"
1616
},
17+
"mocha": {
18+
"timeout": "5000"
19+
},
1720
"lint-staged": {
1821
"linters": {
1922
"*.{js,jsx,json,scss}": [

0 commit comments

Comments
 (0)