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

Conversation

nidkil
Copy link

@nidkil nidkil commented Nov 22, 2018

Summary

Added README.md with warning about incompatibility between jest, node 10 and npm to example using Babel 7 to avoid users spending time trying to fix a known issue.

Test plan

N/A

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!


**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.

@nidkil
Copy link
Author

nidkil commented Nov 23, 2018

Nope, both npm and pnpm fail. Tested on Windows 10 and Ubuntu 18.04.

That said probably a good idea I add pnpm to the README.md :-) I will update the pull request.

@SimenB
Copy link
Member

SimenB commented Nov 23, 2018

$ git clone [email protected]:nidkil/jest-issue.git
Cloning into 'jest-issue'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 18 (delta 3), reused 17 (delta 2), pack-reused 0
Receiving objects: 100% (18/18), 41.70 KiB | 410.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
$ cd jest-issue
$ node -v
v10.13.0
$ npm -v
6.4.1
$ npm i

> [email protected] install /Users/simen/Development/jest-issue/node_modules/fsevents
> node install

[fsevents] Success: "/Users/simen/Development/jest-issue/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm notice created a lockfile as package-lock.json. You should commit this file.
added 742 packages from 373 contributors and audited 21316 packages in 19.078s
found 0 vulnerabilities

$ npm t

> [email protected] test /Users/simen/Development/jest-issue
> jest

 PASS  ./sum.test.js
  ✓ adds 1 + 2 to equal 3 (4ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.386s
Ran all test suites.

@nidkil
Copy link
Author

nidkil commented Nov 23, 2018

nidkil@LOVE-IT c:\dev
$ git clone https://github.com/nidkil/jest-issue.git
Cloning into 'jest-issue'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 18 (delta 3), reused 17 (delta 2), pack-reused 0
Unpacking objects: 100% (18/18), done.

nidkil@LOVE-IT c:\dev
$ cd jest-issue

nidkil@LOVE-IT c:\dev\jest-issue
$ node -v
v10.9.0

nidkil@LOVE-IT c:\dev\jest-issue
$ npm -v
6.2.0

nidkil@LOVE-IT c:\dev\jest-issue
$ npm i
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 674 packages from 353 contributors and audited 21316 packages in 35.169s
found 0 vulnerabilities

nidkil@LOVE-IT c:\dev\jest-issue
$ npm t

[email protected] test c:\dev\jest-issue
jest

PASS ./sum.test.js
√ adds 1 + 2 to equal 3 (3ms)

Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 1.702s
Ran all test suites.

nidkil@LOVE-IT c:\dev\jest-issue
$

@nidkil
Copy link
Author

nidkil commented Nov 23, 2018

Seriously, now it is working? WTF? Sometimes this work is enough to drive you insane :-)

@rickhanlonii
Copy link
Member

Thanks for looking into this @nidkil!

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants