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

Upgrade Jest setup to latest v29 from v26 #820

Merged
merged 5 commits into from
Jun 8, 2024

Conversation

harsh183
Copy link
Member

@harsh183 harsh183 commented Jun 8, 2024

I didn't use the latest Jest in the first PR since we were on Node 16, but now that we're on 18, I upgraded to recent Jest. There were some minor breaking changes with the CRA ejected config but I think I have it sorted.

Also upgraded accompanying babel config and moved more things to the dev dependencies side.

https://jestjs.io/blog/2021/05/25/jest-27

https://web.archive.org/web/20230330085721/https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer

@harsh183 harsh183 requested a review from angrave June 8, 2024 05:08
@@ -15,7 +15,7 @@ const hasJsxRuntime = (() => {
}
})();

module.exports = babelJest.createTransformer({
module.exports = babelJest.default.createTransformer({
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -5,7 +5,9 @@

module.exports = {
process() {
return 'module.exports = {};';
return {
Copy link
Member Author

Choose a reason for hiding this comment

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

@harsh183 harsh183 changed the title Upgrade Jest setup to latest Upgrade Jest setup to latest v29 from v26 Jun 8, 2024
@harsh183 harsh183 force-pushed the hd/upgrade-babel-jest-deps branch from 21aa513 to 88172f4 Compare June 8, 2024 06:05
Copy link
Collaborator

@angrave angrave left a comment

Choose a reason for hiding this comment

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

LGTM

@angrave angrave merged commit f6439fa into staging Jun 8, 2024
2 checks passed
@angrave angrave deleted the hd/upgrade-babel-jest-deps branch June 8, 2024 20:09
@harsh183 harsh183 mentioned this pull request Jun 11, 2024
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.

2 participants