Reject a promise after a test will make test end earlier in browser mode. #7079
Labels
feat: browser
Issues and PRs related to the browser runner
p4-important
Violate documented behavior or significantly improves performance (priority)
Describe the bug
If a test case will make an unhandled rejection just after one test and before the next test, the cases in the other files will not be tested.
After debugging, there will post a "done" message included all test files. And It will break the next test process.
vitest/packages/browser/src/client/public/error-catcher.js
Line 69 in 4e60333
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-ceqdspje
This issue can also be reproduced by following steps.
mkdir
to create a new folder, and npm init.npx vitest init browser
to init the test with browser mode.package.json
to runvitest run
.npm test:browser
.The result will show that only one file is tested.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: