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
A fixture whose setup throws is never set up again #11237
For test scope, withFixtures marks the fixture in cachedFixtures before awaiting setup and only unmarks it after success. The retry sees the mark, skips setup, and the test gets undefined.
For file and worker scope, the in-flight promise is cached and only deleted in a .then. A rejection stays cached and is handed to every later test, across files under isolate: false.
Both are in packages/vitest/src/runtime/runner/fixture.ts, since e53854f (#9550). I have a fix and tests, and will open a PR.
Activity
fix(runner): don't cache failed fixture setups (fix vitest-dev#11237) (…