Packages

@vitest/spy

5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed

Upgrading @vitest/spy from 1.0.3 to 1.6.1

17 releases in betweenevery note read

Other targets from 1.0.3Latest5.0.5

Before you upgrade

Tick each one off as you go
  • deprecated1.4.0
  • deprecated1.3.0

Security

Release by release

  1. 1.6.1

    3 Feb 20251 fix
    • fixed

      Backport #7317 to v1

  2. 1.6.0

    3 May 20248 new · 8 fixes
    • new

      Support standalone mode

    • new

      Custom "snapshotEnvironment" option

    • new

      benchmark: Support comparing benchmark result

    • new

      browser: Allow injecting scripts

  3. 1.5.3

    30 Apr 20244 fixes
    • fixed

      Use package.json name for a workspace project if not provided

    • fixed

      Backport jest iterable equality within object

    • fixed

      browser: Support benchmark

    • fixed

      reporter: Use default error formatter for JUnit

  4. 1.5.2

    25 Apr 20241 fix
    • fixed

      Check for null before storing in weakmap

  5. 1.5.1

    24 Apr 20241 new · 13 fixes
    • new

      api: startVitest() to accept stdout and stdin

    • fixed

      Close vite servers on all resolved projects

    • fixed

      Fix default import.meta.env.PROD: false

    • fixed

      Resolve cwd correctly when initiating projects

  6. 1.5.0

    11 Apr 20244 new · 18 fixes
    • new

      Add configuration for diff truncation

    • new

      Remove unrelated noise from diff for toMatchObject()

    • new

      Allow custom host for --inspect and --inspect-brk

    • new

      coverage: V8 to ignore empty lines, comments, types

  7. 1.4.0

    15 Mar 20247 new · 18 fixes
    • new

      Throw error when using snapshot assertion with not

    • new

      Add a flag to include test location in tasks

    • new

      cli: Support wildcards in --project option

    • new

      config: Add shuffle.files and shuffle.tests options

  8. 1.3.1

    20 Feb 20242 new · 2 fixes
    • new

      vitest: Expose parseCLI method

    • new

      Add task tests iteratively

    • fixed

      coverage: Ignore generated TS decorators

    • fixed

      ui: Auto reload coverage iframe after test run

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