jest: [Bug]: Jest Worker Process Terminated by Another Process (signal=SIGKILL) in React Native 0.74.0 Project
Version
29.6.0
Steps to reproduce
Upgrade a React Native project(any sample project is fine) from version 0.67.5 to 0.74.0. Update Jest to version 29.6.0. Run the Jest test suite.
Expected behavior
jest should not throw error mentioned in title
Actual behavior
I recently upgraded my React Native project from version 0.67.5 to 0.74.0 and encountered an issue when running Jest tests. The tests fail to run with the following error message:
Test suite failed to run A jest worker process (pid=43249) was terminated by another process: signal=SIGKILL, exitCode=null. Operating system logs may contain more information on why this occurred. at ChildProcessWorker._onExit (node_modules/jest-worker/build/workers/ChildProcessWorker.js:370:23)
I found a related issue here: https://github.com/jestjs/jest/issues/13976
And a fix was supposedly provided in this pull request: https://github.com/jestjs/jest/pull/14015
However, even after upgrading to the fixed version (29.6.0), I am still facing the same issue.
Any help or guidance on resolving this issue would be greatly appreciated. If there are any further steps or diagnostics you would like me to perform, please let me know.
Thank you!
Additional context
No response
Environment
System:
OS: macOS 14.4.1
CPU: (12) arm64 Apple M3 Pro
Memory: 492.66 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.15.0
path: /opt/homebrew/opt/node@20/bin/node
Yarn:
version: 3.6.4
path: /opt/homebrew/bin/yarn
npm:
version: 10.7.0
path: /opt/homebrew/opt/node@20/bin/npm
Watchman:
version: 2024.05.06.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK:
API Levels:
- "28"
- "33"
- "34"
Build Tools:
- 28.0.3
- 30.0.3
- 31.0.0
- 33.0.1
- 33.0.3
- 34.0.0
System Images:
- android-28 | Google APIs ARM 64 v8a
- android-33-ext5 | Google Play ARM 64 v8a
- android-33 | Google APIs ARM 64 v8a
- android-34 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11668458
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 2.7.8
path: /opt/homebrew/opt/ruby@2.7/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.0
wanted: 0.74.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: false
newArchEnabled: false
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 10
- Comments: 25
This is still an issue, do not close it.
Bumping this issue so it doesn’t remain stale.
We’ve had this for a while as well. Annoying!!!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Same for me as well. Facing this issue on our gitlab jobs.
Issue here as well