Skip to content

Commit

Permalink
fix: use babel-jest as jest transformer for esnext (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
luftywiranda13 authored Jan 20, 2018
1 parent 7eee56f commit 7a2eac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"<% if (esnext) { %>dist<% } else { %>index.js<% } %>"
],
"dependencies": {},
"devDependencies": {
"async-to-gen": "^1.3.3",<% if (esnext) { %>
"devDependencies": {<% if (!esnext) { %>
"async-to-gen": "^1.3.3",<% } %><% if (esnext) { %>
"babel-cli": "^6.26.0",
"babel-jest": "^22.0.4",
"babel-plugin-add-module-exports": "^0.2.1",
Expand All @@ -42,7 +42,7 @@
"jest": {
"testEnvironment": "node",
"transform": {
"^.+\\.js$": "async-to-gen"
"^.+\\.js$": "<% if (esnext) { %>babel-jest<% } else { %>async-to-gen<% } %>"
}<% if (esnext) { %>,
"collectCoverageFrom": [
"src/**/*.js"
Expand Down

0 comments on commit 7a2eac9

Please sign in to comment.