Skip to content

Commit

Permalink
chore(tests): move default test config to mocha.opts file
Browse files Browse the repository at this point in the history
This has the advantage of being able to use the config on one file at a time.
  • Loading branch information
malept committed Dec 17, 2017
1 parent e13e638 commit f681176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"pretest": "gulp build",
"test": "npm run lint && npm run test-all",
"test-coverage": "npm run lint && npm run test-all-coverage",
"test-all": "mocha test/**/*_spec*.js test/**/**/*_spec*.js --require babel-register --timeout=300000",
"test-fast": "mocha test/**/*_spec.js test/**/**/*_spec.js --require babel-register --timeout=10000",
"test-all": "mocha test/**/*_spec*.js test/**/**/*_spec*.js",
"test-fast": "mocha test/**/*_spec.js test/**/**/*_spec.js --timeout=10000",
"test-all-coverage": "cross-env NODE_ENV=test nyc npm run test-all",
"test-fast-coverage": "cross-env NODE_ENV=test nyc npm run test-fast",
"release:patch": "changelog -p && node ci/fix-changelog.js && git add CHANGELOG.md && git commit -m \"updated CHANGELOG.md\" && npm version patch && git push origin && git push origin --tags",
Expand Down
2 changes: 2 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--require babel-register
--timeout 300000

0 comments on commit f681176

Please sign in to comment.