v4.1.3
📦 vitestView on GitHub →
✨ 4 features🐛 10 fixes🔧 9 symbols
Summary
This release introduces several experimental features, including a `preParse` flag and support for custom snapshot matchers. Numerous bug fixes address issues related to fake timers, snapshot reporting, and module resolution.
Migration Steps
- Update Playwright dependency to 1.59.0 if you rely on specific Playwright behavior integrated with `defineHelper`.
✨ New Features
- Add `experimental.preParse` flag.
- Support `browser.locators.exact` option.
- Add `TestAttachment.bodyEncoding`.
- Support custom snapshot matcher.
🐛 Bug Fixes
- Advance fake timers with `expect.poll` interval.
- Add `@vitest/coverage-v8` and `@vitest/coverage-istanbul` as optional dependency.
- Fix `defineHelper` for webkit async stack trace + update playwright 1.59.0.
- Fix suite hook throwing errors for unused auto test-scoped fixture.
- Remove `JestExtendError.context` from verbose error reporting in `expect`.
- Don't leak "runner" types in `expect`.
- Fix flagging obsolete snapshots for snapshot properties mismatch in `snapshot`.
- Export custom snapshot matcher helper from `vitest` in `snapshot`.
- Don't leak vite types in `ui`.
- Fix external module resolve error with deps optimizer query in `vm`.