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

feat(@cypress/react): Support react-scripts v4 #15488

Merged
merged 3 commits into from
Mar 16, 2021

Conversation

dmtrKovalenko
Copy link
Contributor

Ignore ReactRefresh using special env variable

Reference cypress-io/cypress-realworld-app#832

@dmtrKovalenko dmtrKovalenko requested a review from a team March 15, 2021 14:32
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 15, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Mar 15, 2021



Test summary

9392 0 119 3Flakiness 2


Run details

Project cypress
Status Passed
Commit 81f10bd
Started Mar 16, 2021 5:10 PM
Ended Mar 16, 2021 5:22 PM
Duration 11:14 💡
OS Linux Debian - 10.5
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

retries.ui.spec.js Flakiness
1 runner/cypress retries.ui.spec > opens attempt on each attempt failure for the screenshot, and closes after test passes
specs_list_spec.js Flakiness
1 ... > is dismissable

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@@ -10,7 +11,7 @@ describe('RemotePizza', () => {
'pizza',
)

mount(<RemotePizza />)
mount(<RemotePizza />, { ReactDom })
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the ReactDom instance different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I described this in slack channel. It is because mount function is in the upper directory and linked using file:../

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you document this in the test so it's clear?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@JessicaSachs JessicaSachs merged commit 3e9d752 into develop Mar 16, 2021
@JessicaSachs JessicaSachs deleted the feat/ct-support-react-scripts-v4 branch March 16, 2021 21:34
This was referenced Mar 18, 2021
This was referenced Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants