Packages

vitest

5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed

Upgrading vitest From 2.0.5 to 2.1.0

1 release in betweenevery note read

Other targets from 2.0.5Newest 2.x2.1.9Clears its 2 advisories3.2.6Latest5.1.1
  1. 2.0.5yours
  2. 2.1.0target

Before you upgrade

Tick each one off as you go
  • Breaking2.1.0
  • Breaking2.1.0
  • Breaking2.1.0
  • Breaking2.1.0

Security

Release by release

  1. 2.1.0

    Migration needed12 Sep 202417 new · 33 fixes
    • Breaking

      workspace: Correctly resolve workspace globs and file paths

    • Breaking

      workspace: This changes how the custom glob pattern in the workspace config is treated. Any file matching the glob is considered a Vitest config file. Any folder matching the glob pattern is treated as a workspace project and is subject to the regular config resolution (single vitest.config.ts or vite.config.ts inside the folder)

    • Breaking

      workspace: For example, projects/* will match anything inside the projects folder. If it's a folder, we try to find the config inside that folder (if there is none, it is still treated as a project with the default config). If it's a file, it will be treated as a Vitest config. projects/**/* previously would assume that you only wanted to have folders as projects, but now it will match every single file insideprojects.

    • Breaking

      workspace: This change doesn't affect non-glob usage.

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.