GeezerVison is showing github.com — Ensure devtools e2e test use a compatible react-is version by eps1lon · Pull Request #22790 · react/react
Conversation
eps1lon
commented
Nov 19, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Requires #22792
Fixes #22754 (comment)
The odd part was that the pretty-format used by Jest (node_modules/pretty-format) does install its own react-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 that pretty-format uses react-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?
$ yarn build-for-devtools
# in packages/react-devtools-shell
$ yarn start
# in packages/react-devtools-inline
$ yarn start
$ yarn test:e2e
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
"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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Comparing: bddbfb8...3015bf4
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
| Name |
+/- |
Base |
Current |
+/- gzip |
Base gzip |
Current gzip |
| oss-stable/react-dom/cjs/react-dom.production.min.js |
= |
129.98 kB |
129.98 kB |
= |
41.56 kB |
41.56 kB |
| oss-experimental/react-dom/cjs/react-dom.production.min.js |
= |
134.74 kB |
134.74 kB |
= |
42.96 kB |
42.96 kB |
| facebook-www/ReactDOM-prod.classic.js |
= |
424.49 kB |
424.49 kB |
= |
78.24 kB |
78.24 kB |
| facebook-www/ReactDOM-prod.modern.js |
= |
413.04 kB |
413.04 kB |
= |
76.50 kB |
76.50 kB |
| facebook-www/ReactDOMForked-prod.classic.js |
= |
424.49 kB |
424.49 kB |
= |
78.24 kB |
78.24 kB |
Significant size changes
Includes any change greater than 0.2%:
(No significant changes)
Generated by 🚫 dangerJS against 3015bf4
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
zhengjitf
pushed a commit
to zhengjitf/react
that referenced
this pull request
Apr 15, 2022
* Update lockfile by running `yarn install`
* Ensure devtools e2e test use a compatible react-is version
mrizwanashiq
pushed a commit
to mrizwanashiq/react
that referenced
this pull request
Jun 25, 2026
* Update lockfile by running `yarn install`
* Ensure devtools e2e test use a compatible react-is version
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
Sep 9, 2026
* Update lockfile by running `yarn install`
* Ensure devtools e2e test use a compatible react-is version
Reviewers
1 more reviewer
bvaughn
bvaughn approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|