Skip to content

Commit

Permalink
fix: increase timeouts on tests for mac (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Feb 4, 2021
1 parent b4d01bf commit 2dd4d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "test"
},
"scripts": {
"test": "npm run test:lib && npm run test:browser",
"test": "npm run test:browser:cleanup && npm run test:lib && npm run test:browser",
"bundle": "browserify \"lib/browser.js\" | uglifyjs > \"dist/bundle.js\"",
"docs": "jsdoc2md \"lib/parser.js\" -f \"lib/**/*.js\" > API.md",
"types": "jsdoc -t \"node_modules/tsd-jsdoc/dist\" -r lib -d \"./\" && node \"./scripts/fix-ts-types.js\"",
Expand All @@ -18,7 +18,7 @@
"get:name": "echo $npm_package_name",
"lint": "eslint --max-warnings 0 --config \".eslintrc\" \".\"",
"test:lib": "nyc --reporter=html --reporter=text mocha --exclude \"test/browser_test.js\" --recursive",
"test:browser": "npm run test:browser:cleanup && npm run bundle && cp \"dist/bundle.js\" \"test/sample_browser/\" && start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha --timeout 6000 test/browser_test.js\" && npm run test:browser:cleanup",
"test:browser": "npm run test:browser:cleanup && npm run bundle && cp \"dist/bundle.js\" \"test/sample_browser/\" && start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha --timeout 20000 test/browser_test.js\" && npm run test:browser:cleanup",
"test:browser:cleanup": "rimraf \"test/sample_browser/bundle.js\"",
"generate:readme:toc": "markdown-toc -i \"README.md\"",
"generate:assets": "npm run docs && npm run generate:readme:toc && npm run types && npm run bundle",
Expand Down
2 changes: 1 addition & 1 deletion test/browser_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Check Parser in the browser', function() {
} catch (e) {
throw new Error(e);
}
}).timeout(3000);
}).timeout(5000);

it('parsing spec from remote should complete successfully', async function() {
try {
Expand Down

0 comments on commit 2dd4d1a

Please sign in to comment.