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(jest)!: add support for jest v29 #309

Merged

Conversation

aloisklink
Copy link
Contributor

Description

Add support for Jest v29.

Jest v29 drops support for Node v12/v17, so I've updated the package.json to contain the same Node support as Jest.

The only other major breaking change in Jest v29 is that the default snapshot format has changed slightly, but that only changes the stored jest snapshots slighty (see https://jestjs.io/blog/2022/08/25/jest-29).

BREAKING CHANGE: Drop support for Node v12 and Node v17, as Jest v29 does not support these versions.

Motivation and Context

Resolves #308

How Has This Been Tested?

I've tried testing this branch on my own project (remark-mermaid-dataurl) using the following, and it seems to work fine.

    "jest": "^29.0.0",
    "jest-image-snapshot": "git+https://github.com/aloisklink/jest-image-snapshot.git#chore/update-jest-to-v29",

Types of Changes

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
    • README.md modified.
  • 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'm not 100% sure what this means (I'm guessing this means backporting to older MAJOR versions?), but I don't think this applies in my case.
  • I have added the Apache 2.0 license header to any new files created.
    • No files added.

What is the Impact to Developers Using Jest-Image-Snapshot?

Adds support for Jest 29.

BREAKING CHANGE: Drops support for Node v12 and Node v17.

Add support for Jest v29.

Jest v29 drops support for Node v12/v17, so I've updated the
package.json to contain the same Node support as Jest.

The only other major breaking change in Jest v29 is that the default
snapshot format has changed slightly, but that only changes the stored
jest snapshots slighty (see https://jestjs.io/blog/2022/08/25/jest-29).

BREAKING CHANGE: Drop support for Node v12 and Node v17,
                 as Jest v29 does not support these versions.
@aloisklink aloisklink requested a review from a team as a code owner August 31, 2022 21:09
@CLAassistant
Copy link

CLAassistant commented Aug 31, 2022

CLA assistant check
All committers have signed the CLA.

@Remi-p
Copy link

Remi-p commented Sep 12, 2022

Hey, I don't have the skills to validate the "code" part of your PR, but using your branch & jest 29

    "jest": "^29.0.0",
    "jest-image-snapshot": "git+https://github.com/aloisklink/jest-image-snapshot.git#chore/update-jest-to-v29",

works in one of our project too. Thanks for the MR!

@@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
node-version: 14
node-version: 16

Let's use LTS here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 76edb33, let me know if you want me to rebase/squash my commits into one commit.

Node v16 is the current active LTS release of Node.JS

Co-authored-by: Jamie King <hello@jamieking.me>
@nbeloglazov
Copy link

Hi folks! Any update on this PR? Would be nice to get rid of warnings when running npm install about jest-image-snapshot not being compatable with jest 29.

@nbeloglazov
Copy link

@anescobar1991 could you review this PR? Or someone from one-amex-admins :)

@Corrob
Copy link

Corrob commented Nov 3, 2022

Is there a reason this isn't being approved? Are there any risks involved?

This is blocking all projects that use this jest-image-snapshot from upgrading to jest 29 so it would be nice to sort this out sooner than later.

@10xLaCroixDrinker 10xLaCroixDrinker merged commit 79e53fc into americanexpress:main Nov 3, 2022
oneamexbot added a commit that referenced this pull request Nov 3, 2022
# [6.0.0](v5.2.0...v6.0.0) (2022-11-03)

* chore(jest)!: add support for jest v29 (#309) ([79e53fc](79e53fc)), closes [#309](#309)

### BREAKING CHANGES

* Drop support for Node v12 and Node v17,
                 as Jest v29 does not support these versions.

* ci(release): use Node v16 for release action

Node v16 is the current active LTS release of Node.JS

Co-authored-by: Jamie King <hello@jamieking.me>

Co-authored-by: Jamie King <hello@jamieking.me>
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Corrob
Copy link

Corrob commented Nov 3, 2022

Thanks for getting this one out the door!

@aloisklink aloisklink deleted the chore/update-jest-to-v29 branch November 3, 2022 22:51
goverdhan07 pushed a commit to goverdhan07/jest-image-snapshot that referenced this pull request Jul 23, 2023
* chore(jest)!: add support for jest v29

Add support for Jest v29.

Jest v29 drops support for Node v12/v17, so I've updated the
package.json to contain the same Node support as Jest.

The only other major breaking change in Jest v29 is that the default
snapshot format has changed slightly, but that only changes the stored
jest snapshots slighty (see https://jestjs.io/blog/2022/08/25/jest-29).

BREAKING CHANGE: Drop support for Node v12 and Node v17,
                 as Jest v29 does not support these versions.

* ci(release): use Node v16 for release action

Node v16 is the current active LTS release of Node.JS

Co-authored-by: Jamie King <hello@jamieking.me>

Co-authored-by: Jamie King <hello@jamieking.me>
goverdhan07 pushed a commit to goverdhan07/jest-image-snapshot that referenced this pull request Jul 23, 2023
# [6.0.0](americanexpress/jest-image-snapshot@v5.2.0...v6.0.0) (2022-11-03)

* chore(jest)!: add support for jest v29 (americanexpress#309) ([79e53fc](americanexpress@79e53fc)), closes [americanexpress#309](americanexpress#309)

### BREAKING CHANGES

* Drop support for Node v12 and Node v17,
                 as Jest v29 does not support these versions.

* ci(release): use Node v16 for release action

Node v16 is the current active LTS release of Node.JS

Co-authored-by: Jamie King <hello@jamieking.me>

Co-authored-by: Jamie King <hello@jamieking.me>
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.

support jest 29
8 participants