Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion examples/with-jest/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"presets": ["next/babel"]
"env": {
"development": {
"presets": ["next/babel"]
},
"production": {
"presets": ["next/babel"]
},
"test": {
// next/babel does not transpile import/export syntax.
// So, using es2015 in the beginning will fix that.
"presets": ["es2015", "next/babel"]
}
}
}
7 changes: 3 additions & 4 deletions examples/with-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"babel-jest": "^18.0.0",
"enzyme": "^2.5.1",
"jest-cli": "^18.0.0",
"react": "^15.3.2",
"react-addons-test-utils": "^15.3.2",
"react-dom": "^15.3.2",
"react-test-renderer": "^15.4.1"
"react-addons-test-utils": "^15.4.2",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think react and react-dom were added as peerDep in recent commit. You should not remove this.

"babel-preset-es2015": "^6.22.0",
"react-test-renderer": "^15.4.2"
}
}