Skip to content

Commit

Permalink
Technical/issue 293 mocha refactor (#294)
Browse files Browse the repository at this point in the history
* move mocha config to dotfile

* un only spec

* piggy back test script for tdd
  • Loading branch information
thescientist13 authored Mar 2, 2020
1 parent bf3fc20 commit d35d0fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/node_modules/**
!.eslintrc.js
!.eslintrc.js
!.mocharc.js
6 changes: 6 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path');

module.exports = {
spec: path.join(__dirname, 'packages/**/test/**/**/**/*.spec.js'),
timeout: 30000
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"build": "yarn clean && node . build",
"serve": "yarn build && cd ./public && ws",
"develop": "yarn clean && node . develop",
"test": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && nyc mocha ./packages/**/test/**/**/*.spec.js --timeout 30000",
"test:tdd": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && mocha --watch ./packages/**/test/**/**/*.spec.js --timeout 15000"
"test": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && nyc mocha",
"test:tdd": "yarn test --watch"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down

0 comments on commit d35d0fe

Please sign in to comment.