Packages

@vitest/expect

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

Your version

0.30.0

9 Apr 2023Where it was published

0.34.7 is the newest release of 0.30.x.

In short

7 breaking3 new5 fixed

  • breaking

    Remove tinyspy internal properties on Vitest spies

  • breaking

    Only support Node.js 14.18.0 or newer

  • breaking

    Use "concordance" package to display diff instead of using custom diff

  • breaking

    Move snapshot implementation into @vitest/snapshot

  • breaking

    Bump coverage packages vitest peer dependency

  • breaking

    Add workspace support

  • breaking

    Experimental optimizer introduced in 0.29.0 is temporarily disabled.

Release note

Breaking Changes

  • breaking

    Remove tinyspy internal properties on Vitest spies

  • breaking

    Only support Node.js 14.18.0 or newer

  • breaking

    Use "concordance" package to display diff instead of using custom diff

  • breaking

    Move snapshot implementation into @vitest/snapshot

  • breaking

    Bump coverage packages vitest peer dependency

  • breaking

    Add workspace support

  • breaking

    Experimental optimizer introduced in 0.29.0 is temporarily disabled.

Features

  • Gzip html reporter's metadata

  • Add chai config

  • snapshot: Introduce toMatchFileSnapshot and auto queuing expect promise

Bug Fixes

  • Resolve reporters passed down to the CLI relative to the running directory

  • Don't show "diff" in "serialized error" section

  • Convert '--single-thread' and '--inspect' cli args to boolean

  • Stack trace point to incorrect file

  • Run benchmarks sequentially