v4.1.0-beta.2
📦 vitestView on GitHub →
✨ 11 features🐛 4 fixes🔧 4 symbols
Summary
This release introduces several new features including tag support, UI enhancements for running and filtering tests, and improved browser context handling. Several bug fixes address issues in coverage reporting, spying, and UI artifact processing.
✨ New Features
- Expose matcher types.
- Add `toTestSpecification` to reported tasks.
- Show a warning if `vi.mock` or `vi.hoisted` are declared outside of top level of the module.
- Track and display expectedly failed tests (.fails) in UI and CLI.
- Support tags.
- browser: Add `filterNode` option to prettyDOM for filtering browser assertion error output.
- browser: Support playwright persistent context.
- cli: Add @bomb.sh/ tab completions.
- experimental: Option to disable the module runner.
- ui: Allow run individual test/suites.
- ui: Add project filter/sort support.
🐛 Bug Fixes
- Deprecate unused types in matcher context.
- coverage: `thresholds.autoUpdate` to preserve ending whitespace.
- spy: Support deep partial in vi.mocked.
- ui: Process artifact attachments when generating HTML reporter.