diff --git a/.mocharc.yml b/.mocharc.yml new file mode 100644 index 00000000..80604c05 --- /dev/null +++ b/.mocharc.yml @@ -0,0 +1,4 @@ +# TODO: throw-deprecation: true +check-leaks: true +require: + - 'babel-register' diff --git a/package.json b/package.json index d3c7dabf..1ba0e9f6 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,6 @@ "LICENSE", "PATENTS" ], - "options": { - "mocha": "--require babel-register src/**/__tests__/**/*.js" - }, "babel": { "plugins": [ "transform-es2015-modules-commonjs", @@ -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",