Packages

vitest

5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed

Upgrading vitest From 0.30.1 to 0.31.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.30.1Newest 0.x0.34.6Clears its advisory3.2.6Latest5.1.1
  1. 0.30.1yours
  2. 0.31.0target

Before you upgrade

Tick each one off as you go
  • Breaking0.31.0
  • Breaking0.31.0

Security

1 advisory still affects 0.31.0

Upgrading to 3.2.6 clears it.

Release by release

  1. 0.31.0

    Migration needed3 May 20237 new · 18 fixes
    • Breaking

      Remove browser from allowed pools inside poolMatchGlob config option. Please, use Vitest workspaces for running tests in the browser.

    • Breaking

      Move assertion declarations to expect package

    • New

      Update mock implementation to support ESM runtime, introduce "vi.hoisted"

    • New

      Add repeat method to tests

1 internal line (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.