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

Move unnecessary dependencies to devDependencies for babel plugins #15010

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

liuxingbaoyu
Copy link
Contributor

Summary

I found it at babel/babel#16413 and although I've added the solution in Babel, it looks like removing them in Jest is fine.

Test plan

CI green

Copy link

netlify bot commented Apr 5, 2024

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5ad03a6
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/66105d7ff92d6d0008142668
😎 Deploy Preview https://deploy-preview-15010--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@liuxingbaoyu liuxingbaoyu changed the title Move unnecessary dependencies to devDependencies for babel-plugin-jest-hoist Move unnecessary dependencies to devDependencies for babel plugin Apr 5, 2024
@liuxingbaoyu liuxingbaoyu changed the title Move unnecessary dependencies to devDependencies for babel plugin Move unnecessary dependencies to devDependencies for babel plugins Apr 5, 2024
@SimenB
Copy link
Member

SimenB commented Apr 23, 2024

I thought these endes up in our public types, but maybe that has changed?

@liuxingbaoyu
Copy link
Contributor Author

You're right! I should look for another solution, especially with babel/babel#16416.

@SimenB
Copy link
Member

SimenB commented Apr 24, 2024

Yeah

https://www.runpkg.com/?babel-plugin-jest-hoist@29.6.3/build/index.d.ts
https://www.runpkg.com/?babel-jest@29.7.0/build/index.d.ts

Seems we can remove traverse from the hoist plugin, but core needs to be there for both

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

Successfully merging this pull request may close these issues.

None yet

2 participants