Skip to content

Errors during globalSetup are misdiagnosed as "No test files found" #12030

Closed

Description

@jszumski

Describe the bug

When a globalSetup throws, runFiles ends the test run in finally before the error reaches the state, so reporters print "No test files found" and the real error is shown afterwards as a separate unhandled error.

Reproduction

The existingfixtures/global-setup-fail reproduces the issue

System Info

System:
    OS: macOS 26.6.2
    CPU: (18) arm64 Apple M5 Pro
    Memory: 21.66 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 26.13.0
    Yarn: 1.22.22
    npm: 11.20.0
    pnpm: 12.21.0
    Watchman: 2026.06.29.00
  Browsers:
    Chrome: 158.0.8127.37
    Safari: 26.6.2

Used Package Manager

pnpm

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions