Skip to content

Fix mocked warning from ts-jest#285

Merged
jo-sm merged 2 commits intomasterfrom
jest-mock-warning
Jan 25, 2022
Merged

Fix mocked warning from ts-jest#285
jo-sm merged 2 commits intomasterfrom
jest-mock-warning

Conversation

@jo-sm
Copy link
Copy Markdown
Owner

@jo-sm jo-sm commented Jan 25, 2022

This PR upgrades jest and ts-jest to latest, and uses jest.mocked instead of mocked from ts-jest/utils based on this warning coming from ts-jest:

mocked util function is now deprecated and has been moved to Jest repository, see jestjs/jest#12089. In ts-jest v28.0.0, mocked function will be completely removed. Users are encouraged to use to Jest v27.4.0 or above to have mocked function available from jest-mock. One can disable this warning by setting environment variable process.env.DISABLE_MOCKED_WARNING=true

@jo-sm jo-sm merged commit 4c9f8c8 into master Jan 25, 2022
@jo-sm jo-sm deleted the jest-mock-warning branch January 25, 2022 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant