-
Notifications
You must be signed in to change notification settings - Fork 2.7k
chore: update Jest #7220
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: update Jest #7220
Conversation
|
bfa2358 to
47e4949
Compare
|
Nothing here jumps out to me. A bit odd removing Any particular reason why you don't go to v29? I'd be happy to help upgrading (I actually sent a PR at work 6 hours ago introducing |
jest/jest.config.shared.js
Outdated
| "\\.[jt]sx?$": require.resolve("./transform"), | ||
| }, | ||
| transformIgnorePatterns: [ | ||
| "node_modules/(?!(@remix-run/web-(blob|fetch|file|form-data|stream)|@web3-storage/multipart-parser)/)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will be able to remove the @remix-run/web-* dependencies here once remix-run/web-std-io#43 is merged
CC/ @SimenB Tagging you to make sure I'm getting this right
|
@SimenB My plan was to first upgrade to v28 and make that work, but I can go straight to v29 as well if you think that would make it easier for you |
|
I'm somehow surprised there's a difference. 😅 Breaking changes 28->29 (beyond snapshot format changes, which are configurable - and node versions) were chosen as they were negligible. |
|
@SimenB I just didn't look into upgrading to v29 yet 🤷♂️ |
|
Ah! Fair enough 🙂 happy to take a look if it proves troublesome - feel free to tag me 👍 |
0535003 to
eeae1d9
Compare
|
@SimenB we're now getting the following warning
Looking at the docs, I don't see what we're doing wrong tbh as Next to that we're still getting the same read-only errors as we already had in v28
Together with the non-constructor errors (which are probably because of the globals not being set)
|
c6ad996 to
61bd74f
Compare
sounds like jestjs/jest#13576 🙁 should probably dig deeper into it and figure out the root cause. it's just a warning tho
probably jestjs/jest#12642 (currently https://github.com/jestjs/jest/blob/642267f6848869a64861c3176eb5a6d5980639c6/packages/jest-environment-node/src/index.ts#L79-L128) both |
e3f8ca3 to
3575b43
Compare
|
If you want the node polyfilling and not the browser ones, you can set up a module mapper using |
|
@SimenB I'm personally not a fan of overriding the So I guess |
|
least hacky is probably just in your jest setup or something like that. I'd say that's the least likely to hide actual bugs |
a3a09dd to
18ed744
Compare
18ed744 to
f59bed1
Compare
32a9511 to
5243ee8
Compare
5243ee8 to
237aa7c
Compare
|
🎉 |
| "packages/remix-testing", | ||
| ], | ||
| reporters: | ||
| process.env.GITHUB_ACTIONS === null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be == - env variables that aren't set are undefined, not null.
$ node -p 'process.env.SOMETHING_RANDOM === null'
falseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 517e40b
|
🤖 Hello there, We just published version Thanks! |
|
🤖 Hello there, We just published version Thanks! |
|
🤖 Hello there, We just published version Thanks! |
Without this update #7217 & #7219 will keep failing
CC/ @SimenB to make sure we're doing what we're supposed to do