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

Update Jest to ^29.2.1 #35014

Closed
wants to merge 1 commit into from
Closed

Conversation

robhogan
Copy link
Contributor

@robhogan robhogan commented Oct 18, 2022

Summary:
X-link: facebook/metro#881

Following on from #34724 and #34972, this updates Jest to the latest version 29.2.1 across projects and in the OSS React Native new app template.

Importantly this version includes the new jest.now() API, which will be useful for exposing internally consistent fake timer mocks of requestAnimationFrame, etc., in the new React Native Jest environment.

Changelog:
[General] [Changed] - Upgrade Jest in React Native template to ^29.2.1

Differential Revision: D40386349

Summary:
X-link: facebook/metro#881

Following on from D39543504 (facebook@c27501b) and D40379963 (facebook@8f33753), this updates Jest to the latest version 29.2.1 across projects and in the OSS React Native new app template.

Importantly this version includes the [new `jest.now()` API](jestjs/jest#13245), which will be useful for exposing internally consistent fake timer mocks of `requestAnimationFrame`, etc., in the new React Native Jest environment.

[General] [Changed] - Upgrade Jest in React Native template to ^29.2.1

Differential Revision: D40386349

fbshipit-source-id: 524a6f19008abcd5b0dad02ef2c3f1c39d10cc29
@robhogan robhogan requested a review from hramos as a code owner October 18, 2022 17:20
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Oct 18, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D40386349

@github-actions
Copy link

github-actions bot commented Oct 18, 2022

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against f7901f3

@robhogan robhogan changed the title Update Jest to ^29.2.1 (#881) Update Jest to ^29.2.1 Oct 18, 2022
facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Oct 19, 2022
Summary:
X-link: facebook/react-native#35014

Pull Request resolved: #881

Following on from facebook/react-native#34724 and facebook/react-native#34972, this updates Jest to the latest version 29.2.1 across projects and in the OSS React Native new app template.

Importantly this version includes the [new `jest.now()` API](jestjs/jest#13245), which will be useful for exposing internally consistent fake timer mocks of `requestAnimationFrame`, etc., in the new React Native Jest environment.

Changelog:
[General] [Changed] - Upgrade Jest in React Native template to ^29.2.1

Reviewed By: jacdebug

Differential Revision: D40386349

fbshipit-source-id: 43f5a69cf546df09e2f02542ebf50130d65f0436
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @robhogan in 45db65b.

When will my fix make it into a release? | Upcoming Releases

@BrodaNoel
Copy link
Contributor

Why are you adding @jest/create-cache-key-function as dependency, instead of devDependency?

@SimenB
Copy link
Contributor

SimenB commented Nov 3, 2022

It's used in the jest preset

@BrodaNoel
Copy link
Contributor

BrodaNoel commented Nov 3, 2022

@SimenB cool.
Just to let you know: It's dropping the support for some Node Versions.
In my case, dropped support for Node 16.4

error @jest/create-cache-key-function@29.2.1: The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "16.4.0"

@SimenB
Copy link
Contributor

SimenB commented Nov 3, 2022

That version came out in june 2021, I don't think that's a big issue.

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: facebook#35014

X-link: facebook/metro#881

Following on from facebook#34724 and facebook#34972, this updates Jest to the latest version 29.2.1 across projects and in the OSS React Native new app template.

Importantly this version includes the [new `jest.now()` API](jestjs/jest#13245), which will be useful for exposing internally consistent fake timer mocks of `requestAnimationFrame`, etc., in the new React Native Jest environment.

Changelog:
[General] [Changed] - Upgrade Jest in React Native template to ^29.2.1

Reviewed By: jacdebug

Differential Revision: D40386349

fbshipit-source-id: 43f5a69cf546df09e2f02542ebf50130d65f0436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants