GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ensure devtools e2e test use a compatible react-is version by eps1lon · Pull Request #22790 · react/react

Conversation

@eps1lon

@eps1lon eps1lon commented Nov 19, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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.

All reactions
@facebook-github-bot facebook-github-bot added the CLA Signed label Nov 19, 2021
@eps1lon
eps1lon force-pushed the test/devtools-e2e branch from 4ea44ee to 2780cf1 Compare November 19, 2021 14:40
@eps1lon
eps1lon marked this pull request as ready for review November 19, 2021 14:55
@eps1lon eps1lon mentioned this pull request Nov 19, 2021
Proof of Concept for E2E tests using playwright #22754
Merged
bvaughn
bvaughn approved these changes Nov 19, 2021
View reviewed changes

@bvaughn bvaughn left a comment

Copy link
Copy Markdown
Contributor

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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread package.json
"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"

@bvaughn bvaughn Nov 19, 2021

Copy link
Copy Markdown
Contributor

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.

All reactions

@eps1lon eps1lon Nov 19, 2021

Copy link
Copy Markdown
Collaborator Author

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.

All reactions

@bvaughn bvaughn Nov 19, 2021

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
eps1lon added 2 commits November 19, 2021 16:07
@eps1lon
Update lockfile by running yarn install
299fcf4
@eps1lon
Ensure devtools e2e test use a compatible react-is version
3015bf4
@eps1lon
eps1lon force-pushed the test/devtools-e2e branch from 2780cf1 to 3015bf4 Compare November 19, 2021 15:08
@sizebot

sizebot commented Nov 19, 2021

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bvaughn
bvaughn merged commit 149b420 into react:main Nov 19, 2021
@bvaughn
bvaughn deleted the test/devtools-e2e branch November 19, 2021 15:18
@jstejada jstejada mentioned this pull request Nov 23, 2021
Ensure react-is version used for resolution for playwright is installed #22813
Merged
@bvaughn bvaughn mentioned this pull request Dec 15, 2021
[react-devtools-inline][4.22.0]: broken published package #22958
Closed
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
@eps1lon @zhengjitf
Ensure devtools e2e test use a compatible react-is version (react#22790)
97ab27b
* 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
@eps1lon
Ensure devtools e2e test use a compatible react-is version (react#22790)
32ed91c
* 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
@eps1lon
Ensure devtools e2e test use a compatible react-is version (react#22790)
c39665a
* Update lockfile by running `yarn install`

* Ensure devtools e2e test use a compatible react-is version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@bvaughn 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

Labels

CLA Signed

Projects

None yet

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.

4 participants

@eps1lon @sizebot @bvaughn @facebook-github-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.