Skip to content

Commit

Permalink
Fix tests, mocha does not like es2015 modules: false option
Browse files Browse the repository at this point in the history
  • Loading branch information
William Hawker committed Jul 13, 2017
1 parent 009af97 commit 4a383af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"stage-0"
],
"env": {
"test": {
"presets": ["es2015", "react", "stage-0"]
},
"production": {
"plugins": ["lodash", "transform-runtime", "transform-react-remove-prop-types"]
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:prod": "cross-env NODE_ENV=production ./node_modules/.bin/webpack -p",
"build:examples": "./node_modules/.bin/webpack --config examples/webpack.config.js",
"lint": "./node_modules/.bin/eslint src",
"test": "./node_modules/.bin/mocha --compilers js:babel-core/register --require test/test-helper.js test/**/*.spec.js"
"test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register --require test/test-helper.js test/**/*.spec.js"
},
"author": "Will Hawker",
"license": "MIT",
Expand Down

0 comments on commit 4a383af

Please sign in to comment.