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

chore: upgrade jest to v28 (#296) #297

Merged
merged 4 commits into from
May 30, 2022

Conversation

aarongoldenthal
Copy link
Contributor

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, updated engines.node to mirror jest (^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 updated tests 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • My changes are in sync with the code style of this project.
  • There aren't any other open Pull Requests for the same issue/update.
  • These changes should be applied to a maintenance branch.
  • I have added the Apache 2.0 license header to any new files created.

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.

@code-forger code-forger requested a review from a team May 5, 2022 08:24
@afc163
Copy link

afc163 commented May 6, 2022

+1

@aarongoldenthal
Copy link
Contributor Author

@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.

@bendehghan
Copy link

waiting on this...
Thanks!

Copy link
Member

@10xLaCroixDrinker 10xLaCroixDrinker left a 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

@10xLaCroixDrinker 10xLaCroixDrinker requested a review from a team May 25, 2022 17:33
@JAdshead JAdshead merged commit a902a5b into americanexpress:main May 30, 2022
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants