Packages

@vitest/expect

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

Your version

1.4.0

15 Mar 2024Where it was published

1.6.1 is the newest release of 1.x.

In short

1 deprecated7 new18 fixed

  • deprecated

    config: Deprecate cache.dir option

Release note

Features

  • Throw error when using snapshot assertion with not

  • Add a flag to include test location in tasks

  • cli: Support wildcards in --project option

  • config: Add shuffle.files and shuffle.tests options

  • deprecated

    config: Deprecate cache.dir option

  • coverage: Support --changed option

  • vitest: Support clearScreen cli flag

Bug Fixes

  • Repeatable --project option

  • --inspect-brk to pause before execution

  • Correct locations in test.each tasks

  • api: Use resolvedUrls from devserver

  • browser: Add magic-string to optimizeDeps.include

  • coverage: Expensive regexp hangs v8 report generation

  • coverage: V8 to ignore type-only files

  • coverage: Respect source maps of pre-transpiled sources

  • coverage: Prevent reportsDirectory from removing user's project

  • expect: Show diff on toContain/toMatch assertion error

  • forks: Wrap defines to support undefined values

  • typecheck: Update get-tsconfig 4.7.3 to fix false circularity error

  • ui: Escape html in error diff

  • vitest: Loosen onConsoleLog return type

  • vitest: Ensure restoring terminal cursor on close

  • vitest: Ignore timeout on websocket reporter rpc

  • vitest: Correctly override api with --no-api flag

  • vitest: Logs in beforeAll and afterAll

  • workspace: Throw error when browser mode and @vitest/coverage-v8 are used