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

fix(browser): wait for files scanning in browser #1704

Merged
merged 3 commits into from Jul 26, 2022

Conversation

Aslemammad
Copy link
Member

@Aslemammad Aslemammad commented Jul 24, 2022

This PR tries to create an empty promise when vitest starts and then finishes it when vitest node (runningPromise) gets done! so when the client calls getPaths, it waits for files to be scanned. This also fixes some inconsistencies between the client and vitest node.

So vitest --browser should work (when It opens the browser automatically)!

@antfu antfu changed the title fix: wait for files scanning in browser fix(browser): wait for files scanning in browser Jul 26, 2022
@sheremet-va sheremet-va merged commit d4e6612 into vitest-dev:main Jul 26, 2022
@Aslemammad Aslemammad deleted the fix/browser/wait-for-files branch July 26, 2022 06:06
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.

None yet

3 participants