You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a monorepo and I am taking advantage of Vitest workspaces. One workspace uses browser mode and the other workspace does NOT use browser mode.
When I run tests from the project root, the normal tests run fine, but browser tests always fail. The browser test can be extremely simple like expect(true).toBeTruthy() and it still fails. However, if I run the tests from the individual workspaces instead of the project root, then the tests always execute and succeed.
This seems to be a regression of the change made from this issue: #3363. I was able to verify this fix in the next release of Vitest.
Since then, I have upgraded to Vitest v0.32.0 and switched to using v8 as a coverage provider. Even If I switch back to c8, the bug still occurs. I should also note that running tests and collecting coverage or not collecting coverage makes no difference in the outcome.
Describe the bug
I have a monorepo and I am taking advantage of Vitest workspaces. One workspace uses browser mode and the other workspace does NOT use browser mode.
When I run tests from the project root, the normal tests run fine, but browser tests always fail. The browser test can be extremely simple like
expect(true).toBeTruthy()
and it still fails. However, if I run the tests from the individual workspaces instead of the project root, then the tests always execute and succeed.This seems to be a regression of the change made from this issue: #3363. I was able to verify this fix in the next release of Vitest.
Since then, I have upgraded to Vitest v0.32.0 and switched to using v8 as a coverage provider. Even If I switch back to c8, the bug still occurs. I should also note that running tests and collecting coverage or not collecting coverage makes no difference in the outcome.
Reproduction
https://stackblitz.com/edit/vitest-browser-mode-bug-2?file=package.json
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: