Skip to content

[Bug]: jest-circus/build/runner.js in the testRunner option was not found on MacOS/jest30 #15724

@eavdmeer

Description

@eavdmeer

Version

30.0.3

Steps to reproduce

  1. Use a system running MacOS 15.5 on ARM.
  2. Clone this repostitory: git clone 'https://github.com/eavdmeer/jest-30-bug/'.
  3. Run 'npm install'.
  4. Run 'npm test'.

Expected behavior

There should be output showing a successful test:

$ npm test

> [email protected] test
> jest --env node --passWithNoTests

 PASS  ./index.test.js
  add tester
    ✓ add two numbers (2 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.147 s, estimated 1 s
Ran all test suites.

Actual behavior

Initial run of npm fails with error output:

$ npm test

> [email protected] test
> jest --env node --passWithNoTests

[[email protected]] Trying to install package "@unrs/resolver-binding-darwin-arm64" using npm
● Validation Error:

  Module /Users/qy69gz/Developer/jest-30-bug/node_modules/jest-circus/build/runner.js in the testRunner option was not found.
         <rootDir> is: /Users/qy69gz/Developer/jest-30-bug

  Configuration Documentation:
  https://jestjs.io/docs/configuration

Additional context

  • Running npm test a second time (and any subsequent times) after install produces the correct result. However, running it from any kind of subshell (like Apache ant) will have it fail every single time.
  • Adding a devDependency to @unrs/resolver-binding-darwin-arm64 before npm install will make npm test run correctly immediately.

Environment

System:
    OS: macOS 15.5
    CPU: (12) arm64 Apple M2 Pro
  Binaries:
    Node: 20.19.1 - ~/.nvm/versions/node/v20.19.1/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.19.1/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.19.1/bin/npm
  npmPackages:
    jest: ^30.0.3 => 30.0.3

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