From f9dd92009087ab7769b3bc919f55c577ccd791b8 Mon Sep 17 00:00:00 2001 From: Ammar <56042290+ammarkarachi@users.noreply.github.com> Date: Mon, 8 Nov 2021 17:21:03 -0800 Subject: [PATCH] test(amplify-migration-tests): path fix for override-root file (#8745) --- .../__tests__/migration_tests/overrides/init-migration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-migration-tests/src/__tests__/migration_tests/overrides/init-migration.test.ts b/packages/amplify-migration-tests/src/__tests__/migration_tests/overrides/init-migration.test.ts index bfb3a0b07e0..b090cc9aa25 100644 --- a/packages/amplify-migration-tests/src/__tests__/migration_tests/overrides/init-migration.test.ts +++ b/packages/amplify-migration-tests/src/__tests__/migration_tests/overrides/init-migration.test.ts @@ -33,7 +33,7 @@ describe('amplify init', () => { JSONUtilities.writeJson(cliJsonPath, modifiedCliJson); // override new env await amplifyOverrideRoot(projRoot, {}); - const srcOverrideFilePath = path.join(__dirname, '..', '..', '..', 'amplify-e2e-tests', 'overrides', 'override-root.ts'); + const srcOverrideFilePath = path.join(__dirname, '..', '..', '..', '..', '..', 'amplify-e2e-tests', 'overrides', 'override-root.ts'); const destOverrideFilePath = path.join(projRoot, 'amplify', 'backend', 'awscloudformation', 'override.ts'); fs.copyFileSync(srcOverrideFilePath, destOverrideFilePath); await amplifyPushOverride(projRoot);