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 to Jest 29 #2321

Merged
merged 9 commits into from Oct 11, 2022
Merged

Upgrade to Jest 29 #2321

merged 9 commits into from Oct 11, 2022

Conversation

lachlanjc
Copy link
Member

@lachlanjc lachlanjc commented Sep 15, 2022

Though development is done on upgrading, we need to wait for the new version of @emotion/jest, since it adds compatibility with Jest 29's types, & I'd rather not merge the addition of strict-peer-dependencies=false to .npmrc needed to make this work right now.

In the meantime, I've closed all the Dependabot PRs since this upgrade requires code changes.

@vercel
Copy link

vercel bot commented Sep 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
theme-ui ✅ Ready (Inspect) Visit Preview Oct 11, 2022 at 1:51AM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 15, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5b5067e:

Sandbox Source
next-theme-ui-example Configuration
gatsby-plugin-theme-ui-example Configuration

@lachlanjc
Copy link
Member Author

@hasparus any quick tips on why https://github.com/system-ui/theme-ui/actions/runs/3063545168/jobs/4945735744#step:7:34 is failing? This was happening in dev; everything worked if I ts-expect-error'd that line, but that's gross; we have to import React there to use JSX; it's a devDependency of the module.

.npmrc Outdated Show resolved Hide resolved
useESM: true,
diagnostics: {
exclude: ['**'],
transform: {
Copy link
Member

Choose a reason for hiding this comment

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

This makes so much more sense now.

@lachlanjc
Copy link
Member Author

I’d like to merge this for now, since it’s been over a month waiting on the Emotion package release. We can easily remove our version override in the future when it’s released, but I don’t want to deal with more merge conflicts down the road. @hasparus can you take a quick look at the React import error?

@lachlanjc
Copy link
Member Author

Ooh makes a ton of sense, thanks!

@hasparus
Copy link
Member

🚀 PR was released in v0.15.3 🚀

@hasparus hasparus added the released This issue/pull request has been released. label Oct 17, 2022
@hasparus
Copy link
Member

🚀 PR was released in v0.15.3 🚀

@hasparus
Copy link
Member

🚀 PR was released in v0.15.3 🚀

2 similar comments
@hasparus
Copy link
Member

🚀 PR was released in v0.15.3 🚀

@hasparus
Copy link
Member

🚀 PR was released in v0.15.3 🚀

@hasparus
Copy link
Member

hasparus commented Nov 8, 2022

🚀 PR was released in v0.15.4-develop.0 🚀

@hasparus hasparus added the prerelease This change is available in a prerelease. label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prerelease This change is available in a prerelease. released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants