@vitest/expect
5.0.5 · 15 Oct 2026MIT151.9M / weekRepositoryHomepagenpmAtom feed
2.1.9 is the newest release of 2.x.
In short
1 new11 fixed
Release note
Features
Introduce experimental reported tasks
This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go!
Bug Fixes
Show a difference between string characters if both values are strings
testNamePatternadds leading spacebrowser: Don't bundle
afterEachcleanup hooks in node entrypointbrowser: UserEvent.setup initiates a separate state for userEvent instance
browser: Correctly import optimized module in vi.importActual
browser: Passing options to hover/unhover
browser: Improve unique CSS selector generation
vitest: Remove nuxt from auto inline deps
vitest: Improve
defineProjectanddefineWorkspacetypesvitest: Correctly resolve mocked
node:*imports in__mocks__folderweb-worker: Expose globals on self