Packages

vitest

5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed

Upgrading vitest From 0.30.1 to 0.34.6

18 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.30.1Clears its advisory3.2.6Latest5.1.1
  1. 0.30.1yours
  2. 0.31.0major
  3. 4 releases
  4. 0.32.0major
  5. 4 releases
  6. 0.33.0major
  7. 0.34.0major
  8. 5 releases
  9. 0.34.6target

Before you upgrade

Tick each one off as you go
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.33.0
  • Breaking0.32.0
  • Breaking0.32.0

Security

1 advisory still affects 0.34.6

Upgrading to 3.2.6 clears it.

Release by release

  1. 0.34.6

    29 Sep 20233 fixes
    • Fixed

      Overwrite global URL with environment's

    • Fixed

      Correctly resolve external dependencies loaded by custom environments

    • Fixed

      runner: The fixture of test.extend should be init once time in all test

  2. 0.34.5

    21 Sep 20236 new · 12 fixes
    • New

      config: Add diff option

    • New

      coverage: Add coverage['100'] to istanbul provider

    • New

      vitest: Support vi.waitFor method

    • New

      vitest: Allow using unprocessed environment files

  3. 0.34.4

    8 Sep 202312 fixes
    • Fixed

      Resolving dep optimizer issues with workspace

    • Fixed

      Don't process config file twice

    • Fixed

      coverage: Log info only when terminal reporter is used

    • Fixed

      happy-dom: Use the nodejs console in happy-dom v11

  4. 0.34.3

    25 Aug 20233 new · 6 fixes
    • New

      coverage: Add allowExternal option

    • New

      vitest: Export all reporters in vitest/reporters

    • New

      Add workspace config files to default coverage excludes

    • Fixed

      Should remove mockPath from callstack whether success or failed

  5. 0.34.2

    17 Aug 20234 new · 21 fixes
    • New

      Allow importing CSS and assets inside external dependencies when using --experimental-vm-threads

    • New

      vitest: Allow calling ctx.skip() inside the running test

    • New

      ui: Add support for ui coverage with subdir option

    • New

      dot-renderer: Speed up getTests

  6. 0.34.1

    1 Aug 20231 fix
    • Fixed

      Pass --experimental-vm-worker-memory-limit to tinypool

  7. 0.34.0

    Migration needed1 Aug 20233 new · 17 fixes
    • Breaking

      Transform mode affects only test files, not regular files

    • Breaking

      Custom environment now should be processed before Vitest can consume it. It means that you cannot specify a path to a TS file or use import paths that should be processed by Vite.

    • Breaking

      Disable coverage.reportOnFailure by default

    • Breaking

      Remove @vitest/coverage-c8 package

  8. 0.33.0

    Migration needed6 Jul 20231 new · 2 fixes
    • Breaking

      Revert default include patterns

    • New

      Add missing JSDom living keys

    • Fixed

      vite-node: Don't fail when importing Promise module

    • Fixed

      vite-node: Allow importing node:test

1 other line we could not sort, mostly version bumps
  • Most of deps. options are now moved to server.deps with a deprecation warning. Please, consider using deps.optimizer instead of deps.inline/deps.external. Ideally, we would like to move away from using server.deps.inline altogether.

    0.34.0

4 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.