Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Move 'mocha' config to '.mocharc.yml' (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 17, 2019
1 parent ba32686 commit 6912869
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# TODO: throw-deprecation: true
check-leaks: true
require:
- 'babel-register'
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"LICENSE",
"PATENTS"
],
"options": {
"mocha": "--require babel-register src/**/__tests__/**/*.js"
},
"babel": {
"plugins": [
"transform-es2015-modules-commonjs",
Expand All @@ -44,7 +41,7 @@
"scripts": {
"prepublish": ". ./resources/prepublish.sh",
"test": "npm run lint && npm run check && npm run testonly",
"testonly": "mocha $npm_package_options_mocha",
"testonly": "mocha src/**/__tests__/**/*.js",
"lint": "eslint src",
"prettier": "prettier --write 'src/**/*.js'",
"check": "flow check",
Expand Down

0 comments on commit 6912869

Please sign in to comment.