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
[Bug]: Jest doesn't copy env variables to child processes when parallel execution in Linux environments but works in Windows. Resulting in "fetch is not defined"
#15499
Open
iwaduarte opened this issue
Feb 10, 2025
· 0 comments
It should run independently of the OS or parallelization. It appears that the child process does not get the full parent context when running in Linux.
Actual behavior
npm run test
Running in Windows (it works just fine) ✅
Running in Linux: Ubuntu (it fails) ❌
npm run test -- --runInBand
Running in Windows (it works just fine) ✅
Running in Linux: Ubuntu (it works just fine) ✅
Additional context
No response
Environment
System:
Windows 11 and Linux Ubuntu (22.04.3)
The text was updated successfully, but these errors were encountered:
Version
29.7.0
Steps to reproduce
Node: 22.13.1 (LTS)
Create a brand-new tiny project:
add "test: jest" to package.json
npm run test
Expected behavior
It should run independently of the OS or parallelization. It appears that the child process does not get the full parent context when running in Linux.
Actual behavior
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: