Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
noyobo committed Dec 21, 2016
1 parent 3a25230 commit 9075908
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .babelrc
@@ -1,4 +1,8 @@
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
"env": {
"test": {
"plugins": ["transform-runtime", "transform-async-to-generator"]
}
}
}
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"main": "lib/index.js",
"scripts": {
"test": "jest",
"babel": "babel ./src --out-dir ./lib --presets es2015",
"babel": "babel ./src --out-dir ./lib",
"prepublish": "npm run babel"
},
"files": [
Expand Down Expand Up @@ -34,7 +34,9 @@
"babel-cli": "^6.18.0",
"babel-jest": "^18.0.0",
"babel-plugin-transform-async-to-generator": "^6.16.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.18.0",
"babel-runtime": "^6.20.0",
"co": "^4.6.0",
"jest": "^18.0.0"
},
Expand Down

0 comments on commit 9075908

Please sign in to comment.