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

Fix mocked warning from ts-jest #285

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Fix mocked warning from ts-jest #285

merged 2 commits into from
Jan 25, 2022

Conversation

jo-sm
Copy link
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