diff --git a/packages/server/src/tests/utilities/TestConfiguration.ts b/packages/server/src/tests/utilities/TestConfiguration.ts index cbcb7888aa..82704220f8 100644 --- a/packages/server/src/tests/utilities/TestConfiguration.ts +++ b/packages/server/src/tests/utilities/TestConfiguration.ts @@ -226,13 +226,6 @@ class TestConfiguration { } return () => { - for (const key in newEnvVars) { - // @ts-ignore - delete env[key] - // @ts-ignore - delete coreEnv[key] - } - for (const [key, value] of Object.entries(oldEnv)) { env._set(key, value) } diff --git a/packages/worker/src/tests/TestConfiguration.ts b/packages/worker/src/tests/TestConfiguration.ts index 918083cf56..41a074ee89 100644 --- a/packages/worker/src/tests/TestConfiguration.ts +++ b/packages/worker/src/tests/TestConfiguration.ts @@ -265,13 +265,6 @@ class TestConfiguration { } return () => { - for (const key in newEnvVars) { - // @ts-ignore - delete env[key] - // @ts-ignore - delete coreEnv[key] - } - for (const [key, value] of Object.entries(oldEnv)) { env._set(key, value) }