-
Notifications
You must be signed in to change notification settings - Fork 198
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
chore: upgrade jest to v28 (#296) #297
Conversation
BREAKING CHANGE: drop support for Node 10 due to jest use of globalThis in Node 12
+1 |
@code-forger I believe I captured all of your comments, but let me know if there's anything else I can do to help move this along. |
waiting on this... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to merger: make sure the body of the squashed commit includes the BREAKING CHANGE
note
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Update jest and associated jest dependencies to v28.
BREAKING CHANGE: Required dropping Node 10 support since jest dropped support and now uses
globalThis
, which is only available in Node >=12.0.0 (see actions log with Node 10 failure). For consistency, updatedengines.node
to mirrorjest
(^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0
), which includes leaving Node 12 compatibility (even though it went end-of-life on 2022-04-30). Also updatedtests
actions to drop Node 10 and add Node 17 and 18.I did not notice any Jest v28 breaking changes, other than dropping support for Node 10, that appeared to be impacting (but did not read every line of the CHANGELOG).
Motivation and Context
Enable compatibility with latest jest release (#296).
How Has This Been Tested?
Tests actions ran successfully for all Node versions. Performed limited testing locally on one existing project to demonstrate visual test failure and generation of diff output (Win 10 21H1, Node 16.15.0).
Types of Changes
Checklist:
What is the Impact to Developers Using Jest-Image-Snapshot?
Enable support for Jest 28. Drop support for Node 10. Add tests for Node 17 and 18.