-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
CONTRIBUTING mentions yarn link
, which doesn't even exist anymore
#10734
Comments
@SimenB I assume we should recommend running the Jest binary in the root via its full path? |
Yep! That's the way I've done it all along, I never had much success using
That looks like a bug in yarn. The module is not published, but it is in the workspace. I may have inadvertently fixed that in #10738 by explicitly telling |
Yeah it seems the correct version specifier could fix it. If so, we could ideally mention both ways of running? |
|
As a first time contributor (to many projects), especially ones with workspaces, my worry with not using I also have no particular love for |
I think we've always strived to make Jest work the same no matter where the executable is being run from so I think running the |
I was able to $ yarn policies set-version 1.22.10 It then worked in my test project by doing It's a little odd because the Yarn documentation seems to still be taking about version 1 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
CONTRIBUTING.md
tells us we can test the project by usingyarn link
. Unfortunately,yarn
has been forced to a random commit of yarn 2, and yarn 2 doesn't even have theyarn link
(no-args) syntax:(Also, top tip to save anyone else an hour of debugging: this yarn version ignores your
~/.npmrc
, you must rewrite it for them.)If you use the yarn 2 syntax instead, you instead get a resolution error about
@yarn/test-utils
, which does indeed not exist in the registry, and apparently yarn isn't smart enough to link it, either in--all
mode or while trying to link just thecli
(exactly the same output).Expected behavior
Can someone who understands this yarn setup please update the CONTRIBUTING.md document with how to .. run jest from git?
The text was updated successfully, but these errors were encountered: