-
-
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
missing docs for getMockImplementation of the mock api #9735
Comments
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
It is still undocumented. |
But it has somewhat better types. I think it should be marked Reference: #9061 (comment) |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
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. |
🐛 Bug Report
getMockImplementation is a public method of the mock function api:
https://github.com/facebook/jest/blob/244f7dc7310de24b4892fac55113f8a06f24d947/packages/jest-mock/src/index.ts#L103
But it is nod documented at
https://github.com/jwbay/jest/blob/master/docs/MockFunctionAPI.md
Also, I believe we can better type it as we know the possible return types
The text was updated successfully, but these errors were encountered: