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

feat(@jest/environment): allow jest.mock and jest.doMock to take a type argument #13254

Merged
merged 3 commits into from Sep 13, 2022

Conversation

mrazauskas
Copy link
Contributor

Summary

Similar to #13253. Type arguments could be passed to jest.mock and jest.doMock as well. This helps to keep the module factory typed.

Test plan

Type tests are added.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@SimenB SimenB merged commit 88d1a7e into jestjs:main Sep 13, 2022
@mrazauskas mrazauskas deleted the feat-mock-type-arg branch September 13, 2022 06:56
@SimenB
Copy link
Member

SimenB commented Sep 28, 2022

@github-actions
Copy link

This pull request 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 Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants