diff --git a/test.ts b/test.ts index d7db382..0c48ee9 100644 --- a/test.ts +++ b/test.ts @@ -198,13 +198,13 @@ export const runTerraformApply = async ( ): Promise => { const stateFile = `${dir}/${crypto.randomUUID()}.tfstate`; - const combinedEnv: Record = { + const childEnv: Record = { ...process.env, ...(customEnv ?? {}), }; for (const [key, value] of Object.entries(vars) as [string, JsonValue][]) { if (value !== null) { - combinedEnv[`TF_VAR_${key}`] = String(value); + childEnv[`TF_VAR_${key}`] = String(value); } } @@ -221,7 +221,7 @@ export const runTerraformApply = async ( ], { cwd: dir, - env: combinedEnv, + env: childEnv, stderr: "pipe", stdout: "pipe", },