Skip to content

missing docs for getMockImplementation of the mock api #9735

@regevbr

Description

@regevbr

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions