Skip to content

refactor!: remove deprecated jest.genMockFromModule() - #15042

Merged
SimenB merged 3 commits into
jestjs:mainfrom
mrazauskas:remove-genMockFromModule
Apr 29, 2024
Merged

SimenB merged 3 commits into
jestjs:mainfrom
mrazauskas:remove-genMockFromModule

Conversation

@mrazauskas

Copy link
Copy Markdown
Contributor

Summary

This PR removes deprecated jest.genMockFromModule(), which was replaced with jest.createMockFromModule() in Jest 26 (see: #9962).

Test plan

Green CI.

@netlify

netlify Bot commented Apr 28, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit bdb55f9
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/662e68d358e83b00087675c6
😎 Deploy Preview https://deploy-preview-15042--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.

);
});

it('should extract dependencies from `jest.genMockFromModule` calls', () => {

@mrazauskas mrazauskas Apr 28, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Identical jest.createMockFromModule test lives just under this one.

@SimenB SimenB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

@SimenB
SimenB merged commit 1bf56dd into jestjs:main Apr 29, 2024
@mrazauskas
mrazauskas deleted the remove-genMockFromModule branch April 29, 2024 10:43
@SimenB

SimenB commented May 12, 2024

Copy link
Copy Markdown
Member

@github-actions

Copy link
Copy Markdown

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 Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants