Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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
Merged

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

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants