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'm (sometimes) running into a strange bug when running Vitest in a GitHub CI workflow.
(Most times the CI succeeds but sometimes multiple re-runs are needed before Vitest passes.)
By using --no-threads, the issue is consistently reproducible locally although I'm not sure the root cause is the same.
When running only one test (yarn test --no-threads src/One in the repro), everything works as expected but when running all the tests (yarn test --no-threads), only the first one succeeds and the rest will fail.
This could also be a bug in @testing-library/... but it's strange that in some cases the exact same tests work, and in others they don't.
Describe the bug
I'm (sometimes) running into a strange bug when running Vitest in a GitHub CI workflow.
(Most times the CI succeeds but sometimes multiple re-runs are needed before Vitest passes.)
The following issue seems to be related:
#270
By using
--no-threads
, the issue is consistently reproducible locally although I'm not sure the root cause is the same.When running only one test (
yarn test --no-threads src/One
in the repro), everything works as expected but when running all the tests (yarn test --no-threads
), only the first one succeeds and the rest will fail.This could also be a bug in
@testing-library/...
but it's strange that in some cases the exact same tests work, and in others they don't.Reproduction
https://github.com/vjee/vitest-and-testing-library-issue
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: