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
{{ message }}
Repository navigation
Some in-source tests are not detected when isolate: false and maxWorkers: 1 are set #10577
In a project using in-source testing, running tests with both isolate: false and maxWorkers: 1 causes some of the source files containing in-source tests to fail with Error: No test suite found in file .... With only one of isolate: false or maxWorkers: 1 set, all tests are detected correctly.
Which files fail varies from run to run. From what I have observed, once a test file has run, the in-source tests in its dependencies (direct or transitive) are no longer detected.
Yeah, that would make sense. Collecting tests is a side effect of importing it. Since files are cached, tests are not collected. I think we need to add a t query or something in this case, like we do for browser mode and viteModuleRunner: false.
Activity
sheremet-va commentedon Jun 11, 2026
Yeah, that would make sense. Collecting tests is a side effect of importing it. Since files are cached, tests are not collected. I think we need to add a
tquery or something in this case, like we do for browser mode andviteModuleRunner: false.fix: collect in-source tests when the module is cached
fix: collect in-source tests when the module is cached
fix: collect in-source tests when the module is cached
fix: collect in-source tests when the module is cached (fix vitest-de…