-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Ensure devtools e2e test use a compatible react-is version #22790
Conversation
4ea44ee
to
2780cf1
Compare
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.
Thanks for the fix!
@@ -146,5 +146,8 @@ | |||
"download-build": "node ./scripts/release/download-experimental-build.js", | |||
"download-build-for-head": "node ./scripts/release/download-experimental-build.js --commit=$(git rev-parse HEAD)", | |||
"download-build-in-codesandbox-ci": "cd scripts/release && yarn install && cd ../../ && yarn download-build-for-head || yarn build-combined --type=node react/index react-dom scheduler" | |||
}, | |||
"resolutions": { | |||
"**/@playwright/test/**/react-is": "^16.0.0" |
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.
Could this resolution be declared in the react-devtools-inline
package (since that's the only thing that uses @playwright)? Just curious.
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.
Good question. I always declare them in the root. I tested it quickly and it didn't have any effect when declared in a nested package.
Though it may be preferred to declare it at the root in case another package uses @playwright/test
?
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.
Yeah that's fair.
2780cf1
to
3015bf4
Compare
Comparing: bddbfb8...3015bf4 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
…22790) * Update lockfile by running `yarn install` * Ensure devtools e2e test use a compatible react-is version
Requires #22792
Fixes #22754 (comment)
The odd part was that the
pretty-format
used by Jest (node_modules/pretty-format) does install its ownreact-is
from npm (node_modules/pretty-format/node_modules/react-is). But the pretty-format from playwright does not and therefore uses the top-level react-is (node_modules/react-is). However, the top-level react-is is the one checked-in i.e. the uncompiled version.I used
resolutions
to enforce thatpretty-format
usesreact-is
from npm.Note that only one test is passing at the moment. But at least they are runnable at the moment.
Summary
How did you test this change?