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

How to Patch @jest? #180

Closed
tihuan opened this issue Oct 17, 2019 · 2 comments
Closed

How to Patch @jest? #180

tihuan opened this issue Oct 17, 2019 · 2 comments

Comments

@tihuan
Copy link

tihuan commented Oct 17, 2019

Hi everyone! Crossposting this question from jest here 😁

source: jestjs/jest#7811 (comment)

I'm trying to use patch-package to patch our project in the meantime and have updated node_modules/@jest/transform/build/ScriptTransformer.js with the diff.

However, when I run yarn patch-package jest, it says there's no diff (possibly because technically the path is to node_modules/@jest instead of node_modules/jest. But if I run yarn patch-package @jest, then it says @jest is not in package.json

Any pointer for this situation? Thanks a lot!

@ds300
Copy link
Owner

ds300 commented Oct 17, 2019

the package is called @jest/transform so

yarn patch-package @jest/transform

should do the trick.

@tihuan
Copy link
Author

tihuan commented Oct 17, 2019

Hi @ds300 !! Oh brilliant 👍 ✨ That totally fixed the problem. Thanks so much for your lightning reply. You made my day, sir! 🙏 The patch works perfectly!

@tihuan tihuan closed this as completed Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants