Packages

@vitest/expect

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

Your version

2.1.3

14 Oct 2024Where it was published

2.1.9 is the newest release of 2.x.

In short

2 deprecated1 faster14 fixed

  • deprecated

    vitest: Deprecate UserConfig in favor of ViteUserConfig

  • deprecated

    vitest: Deprecate old task types and node-reliant types

Release note

Bug Fixes

  • Fix error diff of toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy

  • browser: Provide aria role intellisense

  • browser: Not.toBeInTheDocument works with locators API

  • browser: Use /mockServiceWorker.js instead of /__vitest_msw__

  • browser: Don't override the esbuild option in the browser mode

  • expect: Preserve prototype in toMatchObject diff

  • mocker: Specify correct spy dependency

  • runner: Ensure sequential suite overrides sequence.concurrent

  • deprecated

    vitest: Deprecate UserConfig in favor of ViteUserConfig

  • vitest: Don't hang with maxConcurrency 0

  • deprecated

    vitest: Deprecate old task types and node-reliant types

  • vitest: Fix <empty line> logs when interleaving console.log/error

  • vitest: Show rollup error details as test error

  • vitest: Always inline setup files

  • vitest: Use fast-glob instead of tinyglobby in Vitest

  • web-worker: Share mocker with main executor

Performance

  • Reuse full name in reported tasks, update generator types