-
-
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
Add more documentation on auto-mocking #6812
Comments
@Morikko sorry about the slow response. Yeah, as far as I know, those assumptions holds true. The logic lives here: https://github.com/facebook/jest/blob/68eb9a232dcbd4ecf85bb1f0bdad5cb850dff81a/packages/jest-mock/src/index.js#L646-L723 A PR adding a test verifying those assertions in addition to the docs would be greatly appreciated 🙂 |
@mackness the documentation on this is still not very detailed, so I think some improvements would be great :) |
For sure, you can take it :)
Le ven. 8 mars 2019 à 00:31, Tim Seckinger <[email protected]> a
écrit :
… @mackness <https://github.com/mackness> the documentation on this
<https://jestjs.io/docs/en/jest-object.html#jestgenmockfrommodulemodulename>
is still not very detailed, so I think some improvements would be great :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6812 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHeAFPt2_LvHRyIqPbl8tjWckHkl50vyks5vUaFIgaJpZM4Vx1iV>
.
|
I created a PR and I think I'm on the right track but any feedback is greatly appreciated. Definitely open to making improvements. Thanks! |
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. |
🚀 Feature Proposal
Add more documentation on what auto-mocking do, especially for
jest.genMockFromModule
.The purpose is to say how each type is transformed by Jest.
Motivation
You have to test the mocked object to know how each type is transformed by jest.
Example
I could do the PR, however I would gladly appreciate a review of those assumptions.
Also, if some types are missing, let me know.
The text was updated successfully, but these errors were encountered: