-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Open
Labels
Description
Version
30.0.3
Steps to reproduce
- Use a system running MacOS 15.5 on ARM.
- Clone this repostitory: git clone 'https://github.com/eavdmeer/jest-30-bug/'.
- Run 'npm install'.
- 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
beforenpm install
will makenpm 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
curbengh