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

fix: pass modulePath instead of moduleName to onGenerateMock callback (#15429) #15482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MillerSvt
Copy link
Contributor

Summary

There is no way to require the actual module for the currently mocked module inside the onGenerateMock callback. I think it would be better to replace the relative module name with the absolute module path.

Copy link

netlify bot commented Jan 30, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c557af1
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/679b4fc8e48e0f00088132e8
😎 Deploy Preview https://deploy-preview-15482--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.

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.

1 participant