v4.1.0-beta.1
📦 vitestView on GitHub →
✨ 10 features🐛 5 fixes⚡ 1 deprecations🔧 10 symbols
Summary
This release introduces several new features including chai style assertions for spying and enhanced retry options. It also deprecates several vitest/* entry points and updates underlying dependencies like sinon/fake-timers.
✨ New Features
- doMock() now returns a disposable.
- Added chai style assertions for spying.
- Updated to sinon/fake-timers v15 and added `setTickMode` to timer controls.
- API: Support tests starting or ending with `test` in `experimental_parseSpecification`.
- API: Added filters to `createSpecification`.
- API: Exposed `runTestFiles` as an alternative to `runTestSpecifications`.
- Browser: Added `userEvent.wheel` API.
- Coverage: Support `ignore start/stop` ignore hints.
- Experimental: Added `onModuleRunner` hook to `worker.init`.
- Runner: Enhanced `retry` options.
🐛 Bug Fixes
- Use `meta.url` in `createRequire`.
- Preact browser mode init example of render function was not async.
- Browser: Avoid updating screenshots when `toMatchScreenshot` passes.
- Coverage: Infer transform mode for uncovered files.
- Dependencies: Updated all non-major dependencies.
Affected Symbols
⚡ Deprecations
- Several vitest/* entry points are deprecated.