Packages

vitest

5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed

Upgrading vitest From 3.2.7 to 5.1.0

39 releases in betweenevery note read

Other targets from 3.2.7Clears its advisory4.1.11Latest5.1.1
  1. 3.2.7yours
  2. 4.0.0major
  3. 18 releases
  4. 4.1.0breaking
  5. 12 releases
  6. 5.0.0major
  7. 5 releases
  8. 5.1.0target
  9. 3 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Security

Fixes 1 advisory affecting 3.2.7

Release by release

  1. 5.1.0

    2 Nov 202624 new · 44 fixes
    • New

      Add --last-failed to run only failed tests

    • New

      Support Temporal.Instant and Temporal.ZonedDateTime in vi.setSystemTime()

    • New

      Introduce --since-last-run flag

    • New

      Expose per-retry/repeat attempt result

  2. 5.0.5

    15 Oct 20261 new · 14 fixes
    • New

      Add data to the import.meta.hot stub

    • Fixed

      Keep vite default fs.deny with api token file

    • Fixed

      Handle quoted file names in --changed

    • Fixed

      Set skip in skipIf, ignore undefined options

  3. 5.0.4

    12 Oct 20266 new · 28 fixes
    • New

      experimental: Tag cache directories with CACHEDIR.TAG

    • New

      experimental: Support test.ui.theme option

    • New

      experimental: Highlight selector multiple matches in trace view

    • New

      experimental: Print how many tests were affected and a total when running --changed

  4. 5.0.3

    30 Sep 202618 fixes
    • Fixed

      Isolate result.status between repeats runs

    • Fixed

      Don't print an interceptor warning in browser mode

    • Fixed

      Don't retry when test.fails expectedly failed

    • Fixed

      Scope cache key generators to projects

  5. 5.0.2

    25 Sep 20269 fixes
    • Fixed

      Bind process in case global is overwritten

    • Fixed

      detect-async-leaks: Ignore process.stdio handles

    • Fixed

      expect: Fix toMatchObject with asymmetric matchers

    • Fixed

      jsdom: Fix Request with Blob body on jsdom 28+

  6. 5.0.1

    Deprecation15 Sep 20262 new · 17 fixes
    • Deprecated

      Warn when deprecated deps.optimizer.web is used

    • New

      ui: Move trace attempts selector to viewer header

    • New

      ui: Add focused trace view layout mode

    • Fixed

      Exit 1 when vitest list fails collection

  7. 5.0.0

    Migration needed3 Sep 2026
    • Breaking

      Replace loupe.inspect with pretty-format

    • Breaking

      Remove quotes from string values in test.for/each title $ variable (take 2)

    • Breaking

      Default attachmentsDir from .vitest-attachements/ to .vitest/attachments/

    • Breaking

      Remove sequential test/suite options in favor of concurrent

  8. 4.1.12

    15 Oct 20261 fix
    • Fixed

      mocker: Harden manual and redirect mocks [backport to v4]

7 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.