Skip to content

Commit 11f76e1

Browse files
committed
Run mocha with babel-node
1 parent 2a7f8cb commit 11f76e1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
},
3030
"scripts": {
3131
"prepublish": "npm test && npm run build",
32-
"test": "npm run lint && npm run check && mocha $npm_package_options_mocha",
33-
"testonly": "mocha $npm_package_options_mocha",
32+
"test": "npm run lint && npm run check && npm run testonly",
33+
"testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha",
3434
"lint": "eslint src",
3535
"check": "flow check",
3636
"build": "rm -rf lib/* && babel src --ignore __tests__ --out-dir lib",

scripts/mocha-bootload.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10-
require('babel-register');
11-
1210
var chai = require('chai');
1311

1412
var chaiAsPromised = require('chai-as-promised');

0 commit comments

Comments
 (0)