Skip to content

Commit

Permalink
Fix babel settings for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosichert committed Mar 6, 2017
1 parent 7098a12 commit 4fe2eb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
"transform-regenerator"
],
"env": {
"test": {
"presets": [
"es2015"
],
// For some reason this duplicate is needed
"plugins": [
"transform-class-properties"
]
},
"CommonJS": {
"presets": [
"es2015"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prepublish": "rm -rf ./lib && npm run compile",
"preversion": "npm run test",
"report-coverage": "npm run coverage | coveralls",
"test": "mocha --compilers js:babel-core/register --require babel-polyfill",
"test": "BABEL_ENV=test mocha --compilers js:babel-core/register --require babel-polyfill",
"travis": "npm run lint && npm run compile && npm run test"
},
"repository": {
Expand Down

0 comments on commit 4fe2eb3

Please sign in to comment.