You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run docker run --rm -v $(pwd):/app -w /app oven/bun:1.2.1 sh -c 'bun install && bun run test'
See error messages like so:
FAIL src/__test__/add.test.ts
Test suite failed to run
TypeError: Attempted to assign to readonly property.
at node_modules/jest-runtime/build/index.js:1638:6
at forEach (native)
at Object.<anonymous> (node_modules/stack-utils/index.js:10:9)
at Object.<anonymous> (node_modules/expect/build/toThrowMatchers.js:9:30)
at Object.<anonymous> (node_modules/expect/build/index.js:23:54)
at _expect (node_modules/@jest/expect/build/index.js:8:22)
at createJestExpect (node_modules/@jest/expect/build/index.js:29:9)
at Object.<anonymous> (node_modules/@jest/expect/build/index.js:39:35)
at processTicksAndRejections (native)
at processTicksAndRejections (native)
Running bun run test locally or running in a node docker container works
docker run --rm -v $(pwd):/app -w /app node:22.12.0-alpine3.21 sh -c 'npm install && npm run test'
Expected behavior
Tests should run also in bun docker containers
Actual behavior
FAIL src/__test__/add.test.ts
Test suite failed to run
TypeError: Attempted to assign to readonly property.
at node_modules/jest-runtime/build/index.js:1638:6
at forEach (native)
at Object.<anonymous> (node_modules/stack-utils/index.js:10:9)
at Object.<anonymous> (node_modules/expect/build/toThrowMatchers.js:9:30)
at Object.<anonymous> (node_modules/expect/build/index.js:23:54)
at _expect (node_modules/@jest/expect/build/index.js:8:22)
at createJestExpect (node_modules/@jest/expect/build/index.js:29:9)
at Object.<anonymous> (node_modules/@jest/expect/build/index.js:39:35)
at processTicksAndRejections (native)
at processTicksAndRejections (native)
Version
29.7.0
Steps to reproduce
Jest Tests fail when running via bun 1.2.1 in a docker container
docker run --rm -v $(pwd):/app -w /app oven/bun:1.2.1 sh -c 'bun install && bun run test'
Running
bun run test
locally or running in a node docker container worksExpected behavior
Tests should run also in bun docker containers
Actual behavior
Additional context
No response
Environment
System: OS: macOS 15.2 CPU: (8) arm64 Apple M1 Pro Binaries: Node: 22.13.1 - /opt/homebrew/opt/node@22/bin/node Yarn: 1.22.22 - /opt/homebrew/bin/yarn npm: 10.9.2 - /opt/homebrew/opt/node@22/bin/npm bun: 1.2.1 - /opt/homebrew/bin/bun npmPackages: jest: ^29.7.0 => 29.7.0
The text was updated successfully, but these errors were encountered: