From c13e1fbdc509a0f8233f2795ca3d916a39c034b9 Mon Sep 17 00:00:00 2001 From: Javier Toledo Date: Tue, 3 Oct 2023 21:49:43 +0100 Subject: [PATCH] Remove redundant calls to `replace` and `restore` --- packages/cli/test/services/environment.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/cli/test/services/environment.test.ts b/packages/cli/test/services/environment.test.ts index cc5a465fe..0d6bc970c 100644 --- a/packages/cli/test/services/environment.test.ts +++ b/packages/cli/test/services/environment.test.ts @@ -37,12 +37,7 @@ describe('environment service', (): void => { describe('process.env.BOOSTER_ENV set', (): void => { beforeEach(() => { - process.env.BOOSTER_ENV = '' - replace(process.env, 'BOOSTER_ENV', 'testing') - }) - - afterEach(() => { - restore() + process.env.BOOSTER_ENV = 'testing' }) it('set environment in param: no log message', async () => {