Packages

@vitest/expect

5.0.5 · 15 Oct 2026MIT151.9M / weekRepositoryHomepagenpmAtom feed

Your version

0.31.2

30 May 2023Where it was published

0.34.7 is the newest release of 0.31.x.

In short

4 new18 fixed

Release note

Features

  • Throw error if using inline snapshot inside of test.each or describe.each

  • Pass down meta information to Node.js process

  • coverage: Add reportOnFailure option

  • dev: Add moduleDirectories option to the vitest config

Bug Fixes

  • Don't print empty diff

  • Don't restore methods in automocked dependencies

  • Dot reporter scrollback buffer spam

  • Gracefully exit when first SIGINT is received

  • rejects & resolves breaks with thenable objects

  • Prevent birpc timeouts when Math.random mock is not restored

  • Assertion diff message now handle non writable property correctly

  • Extend logging of process timeout errors

  • Support requiring files with less extension

  • cli: Improve colors used when erroring

  • runner: Suite timeout does not take effect

  • spy: Don't print received calls if there are no calls

  • typecheck: Show tsc errors not related to test files

  • types: Fix PartialMock with async TReturns

  • vite-node: Circular import stuck

  • vite-node: Coerce to string in import(dep)

  • vite-node: Don't remove sourcemap string in source code

  • vite-node: Don't externalize "dist" by default