Skip to content

[Bug]: All tests are listed by jest --onlyFailures --listTests #15425

@geoffswift

Description

@geoffswift

Version

29.7.0

Steps to reproduce

  • Run all your tests using the jest command
  • Then use jest --onlyFailures --listTests in the hope of producing a list of the failing tests

Expected behavior

A list of only failed test scripts should be output.

Actual behavior

A complete list of all test scripts is output.

Additional context

No response

Environment

System:
    OS: macOS 15.2
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    pnpm: 8.5.1 - /opt/homebrew/bin/pnpm

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