Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel 7 example readme with warning #7399

Closed
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
.DS_STORE
.eslintcache
*.swp
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

### Chore & Maintenance

- `[examples]` added README with warning incompatibility between jest, node 10 and npm to example using Babel 7 ([#7395](https://github.com/facebook/jest/issues/7395))
- `[jest-watcher]` Standardize filenames ([#7314](https://github.com/facebook/jest/pull/7314))
- `[jest-circus]` Standardize file naming in `jest-circus` ([#7301](https://github.com/facebook/jest/pull/7301))
- `[docs]` Add synchronous test.each setup ([#7150](https://github.com/facebook/jest/pull/7150))
Expand Down
13 changes: 13 additions & 0 deletions examples/babel-7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# babel-7
> This example shows how to setup jest with babel.

This is a barebones example that demonstrates jest and babel integration.

**WARNING**

If you are using jest version 23 with node version 10 and npm then this repository probably will not work for you. For more information please refer to this [jest issue](https://github.com/facebook/jest/issues/7395) on GitHub. This issue should be fixed in the next major release of jest (v24) when the dependency on babel 6 is dropped.
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, npm works for me, it's pnpm that didn't.


You have two options solving this:
1) Either switch to yarn; or
2) Downgrade node to version 8. Consider using [nvm](https://github.com/creationix/nvm) which simplifies managing multiple versions of node.