From 3441c5c9207f0ae3f27d18a87f1f8f43e0520e0c Mon Sep 17 00:00:00 2001 From: Josue Ruiz <7465495+SwaySway@users.noreply.github.com> Date: Mon, 13 Sep 2021 16:51:46 -0700 Subject: [PATCH] Revert "test: fix version gating e2e test deletion (#8156)" This reverts commit c032a88bacc024a7bcd4fbb3d88bc0559188a144. --- .../amplify-e2e-tests/src/__tests__/version-gating.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/amplify-e2e-tests/src/__tests__/version-gating.test.ts b/packages/amplify-e2e-tests/src/__tests__/version-gating.test.ts index c16c848ab75..3f06dfd796c 100644 --- a/packages/amplify-e2e-tests/src/__tests__/version-gating.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/version-gating.test.ts @@ -22,7 +22,6 @@ type VersionGatingMetadata = { describe('version gating', () => { let projRoot: string; - let projectInitialized = false; const projName = 'versiongating'; // Extreme version numbers for testing purposes @@ -57,10 +56,7 @@ describe('version gating', () => { }); afterEach(async () => { - if (projectInitialized) { - await deleteProject(projRoot); - } - + await deleteProject(projRoot); deleteProjectDir(projRoot); }); @@ -76,7 +72,6 @@ describe('version gating', () => { updateVersionInPackageJson(baseCLIVersion, baseMinimumCLIVersion); await initJSProjectWithProfile(projRoot, { name: projName }); - projectInitialized = true; const meta = stateManager.getMeta(projRoot);