Skip to content

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

Merged
SimenB merged 3 commits intojestjs:mainfrom
mrazauskas:feat-mock-type-arg
Sep 13, 2022
Merged

feat(@jest/environment): allow jest.mock and jest.doMock to take a type argument#13254
SimenB merged 3 commits intojestjs:mainfrom
mrazauskas:feat-mock-type-arg

Conversation

@mrazauskas
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

SimenB commented Sep 28, 2022

@github-actions
Copy link
Copy Markdown

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.

3 participants