Skip to content

Commit

Permalink
chore: make mocha rc configs dotfiles (badges#3065)
Browse files Browse the repository at this point in the history
Fixes badges#3054 

Apparently mocha 6's new auto-config discovery only works with dotfiles. This renames our mocha rc files accordingly: `mocharc.yml` --> `.mocharc.yml` and solely to be consistent `mocharc-frontend.yml` --> ` .mocharc-frontend.yml`

- https://github.com/mochajs/mocha/blob/master/lib/cli/config.js#L23
- https://mochajs.org/#configuring-mocha-nodejs
- https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#tada-enhancements-1
  • Loading branch information
calebcartwright authored and paulmelnikow committed Feb 20, 2019
1 parent bc523e3 commit 96d48dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"test:js:server": "echo \"Deprecated; run `npm run test:core` instead.\" && npm run test:core",
"test:js:frontend": "echo \"Deprecated; run `npm run test:frontend` instead.\" && npm run test:frontend",
"test:js:package": "echo \"Deprecated; run `npm run test:package` instead.\" && npm run test:package",
"test:frontend": "cross-env NODE_ENV=test mocha --config mocharc-frontend.yml \"frontend/**/*.spec.js\"",
"test:frontend": "cross-env NODE_ENV=test mocha --config .mocharc-frontend.yml \"frontend/**/*.spec.js\"",
"test:core": "cross-env NODE_CONFIG_ENV=test mocha \"core/**/*.spec.js\" \"lib/**/*.spec.js\" \"services/**/*.spec.js\"",
"test:package": "mocha \"gh-badges/**/*.spec.js\"",
"test:entrypoint": "cross-env NODE_CONFIG_ENV=test mocha entrypoint.spec.js",
Expand Down

0 comments on commit 96d48dc

Please sign in to comment.