Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork68
Open
Description
when i usejest.run to run my tests, thread-loader can not pass process.env.NODE_ENV to child process. i print process.env.NODE_ENV in main process and child process, such as
explicit pass env,child process will get the correct process.env.NODE_ENV
this.worker=childProcess.spawn(process.execPath,[].concat(sanitizedNodeArgs).concat(workerPath,options.parallelJobs),{detached:true,stdio:['ignore','pipe','pipe','pipe','pipe'],env:process.env});
Metadata
Metadata
Assignees
Labels
No labels
