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

missing docs for getMockImplementation of the mock api #9735

Closed
regevbr opened this issue Mar 31, 2020 · 6 comments
Closed

missing docs for getMockImplementation of the mock api #9735

regevbr opened this issue Mar 31, 2020 · 6 comments

Comments

@regevbr
Copy link

regevbr commented Mar 31, 2020

🐛 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

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Feb 17, 2023
@websolutions-hamburg
Copy link

It is still undocumented.

@github-actions github-actions bot removed the Stale label Mar 15, 2023
@mrazauskas
Copy link
Contributor

mrazauskas commented Mar 15, 2023

But it has somewhat better types. I think it should be marked @internal as well.

Reference: #9061 (comment)

Copy link

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.

@github-actions github-actions bot added the Stale label Mar 14, 2024
Copy link

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
Copy link

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.
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 May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants