-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Labels
p4-importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)
Description
Describe the bug
When using custom test fixtures and the context.skip helper in a test, the cleanup of fixtures are never handled.
Reproduction
https://github.com/Mange/vitest-skip-context-repro
- Clone repo.
npm inpm test- You will see a test failure, but all tests should pass (with 2 skips).
System Info
System:
OS: Linux 6.11 cpe:/o:nixos:nixos:25.05 25.05 (Warbler)
CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 49.09 GB / 62.71 GB
Container: Yes
Shell: 5.9 - /run/current-system/sw/bin/zsh
Binaries:
Node: 22.14.0 - ~/.nix-profile/bin/node
npm: 10.9.2 - ~/.nix-profile/bin/npm
Browsers:
npmPackages:
vite: latest => 6.2.4
vitest: latest => 3.0.9Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
p4-importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)