Skip to content
Browse files

chore(tests): move default test config to mocha.opts file

This has the advantage of being able to use the config on one file at a time.
  • Loading branch information
malept committed Dec 8, 2017
1 parent e13e638 commit f681176c90b4e38e8bb1f3290cc79d275d63f3eb
Showing with 4 additions and 2 deletions.
  1. +2 −2 package.json
  2. +2 −0 test/mocha.opts
@@ -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 && git commit -m \"updated\" && npm version patch && git push origin && git push origin --tags",
@@ -0,0 +1,2 @@
--require babel-register
--timeout 300000

0 comments on commit f681176

Please sign in to comment.
You can’t perform that action at this time.