Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d8d445c

Browse files
authoredMay 11, 2023
Explicitly pass process.env when spawning workerd (#574)
Wrangler changes the current directory in some of its tests. `workerd` will warn when the `PWD` environment doesn't match the actual current directory, which is the case here. We can fix this by modifying `process.env.PWD` in tests, but then we need to explicitly pass the new environment.

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/tre/src/runtime/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export class Runtime {
7676
// 2. Start new process
7777
const runtimeProcess = childProcess.spawn(this.#command, this.#args, {
7878
stdio: "pipe",
79+
env: process.env,
7980
});
8081
this.#process = runtimeProcess;
8182
this.#processExitPromise = waitForExit(runtimeProcess);

0 commit comments

Comments
 (0)
This repository has been archived.