Skip to content

--coverage.100 crashes with TypeError #4307

@lydell

Description

@lydell

Describe the bug

vitest run --coverage.100 appears to be broken – it immediately crashes with TypeError: Cannot read properties of undefined (reading 'push').

Reproduction

❯ npx -y vitest run --coverage.100
TypeError: Cannot read properties of undefined (reading 'push')

System Info

System:
    OS: macOS 13.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 2.06 GB / 32.00 GB
    Shell: 3.6.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 20.5.0 - ~/.local/share/nvm/v20.5.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.8.0 - ~/.local/share/nvm/v20.5.0/bin/npm
    pnpm: 8.8.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 118.0.5993.70
    Safari: 16.6

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions