Skip to content

Obsolete test snapshots do not cause test run to fail in CI environments #7954

@Arskah

Description

@Arskah

Describe the bug

Filed as a bug based on the discussion here: #7882 (comment)

When running Vitest in CI pipelines, obsolete snapshots do not cause failures.

Reproduction

Arskah/vitest-obsolete-snapshot#3

System Info

System:
    OS: macOS 15.4.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 7.24 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.asdf/installs/nodejs/22.14.0/bin/node
    Yarn: 1.22.22 - ~/.asdf/installs/nodejs/22.14.0/bin/yarn
    npm: 10.9.2 - ~/.asdf/installs/nodejs/22.14.0/bin/npm
    pnpm: 9.15.4 - ~/.asdf/installs/nodejs/22.14.0/bin/pnpm
  Browsers:
    Brave Browser: 135.1.77.95
    Chrome: 135.0.7049.116
    Safari: 18.4
  npmPackages:
    vitest: 3.1.3 => 3.1.3

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    Projects

    Status

    Approved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions