Skip to content

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Jan 28, 2023

Description

Similar to vitejs/vite#11077

This PR fixes these fails:
https://github.com/vitejs/vite-plugin-react/actions/runs/4006634908/jobs/6878421363#step:11:21
https://github.com/vitejs/vite-plugin-react/actions/runs/4030889354/jobs/6929846904#step:11:21

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the PR Title Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@sapphi-red sapphi-red added the p1-chore 🧹 Doesn't change code behavior (priority) label Jan 28, 2023

test('hmr', async () => {
await page.goto(url)
await untilBrowserLogAfter(() => page.goto(url), 'hydrated')
Copy link
Member Author

Choose a reason for hiding this comment

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

This test should wait for hydration because HMR won't work before hydration like other tests.


test(`circular dependencies modules doesn't throw`, async () => {
await page.goto(url)
await untilBrowserLogAfter(() => page.goto(url), 'hydrated')
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not necessary but I think it's better to call this to make all tests consistent.

@ArnaudBarre
Copy link
Member

Thanks didn't have time to look at it yet. If it worked on core this is safe to merge

@ArnaudBarre ArnaudBarre merged commit c3e5730 into main Jan 28, 2023
@ArnaudBarre ArnaudBarre deleted the test/flaky-test branch January 28, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore 🧹 Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants