Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Technical/issue 293 mocha refactor #294

Merged
merged 3 commits into from
Mar 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a file in packages/cli/test/unit/deeply/deeper/nested.spec.js and this configuration file picked everything up

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