From 8c032f339e016a041489d34c051c950860f5730e Mon Sep 17 00:00:00 2001 From: Alexander Harris Date: Wed, 18 May 2022 12:36:02 -0700 Subject: [PATCH] chore: update function test to point to node 14 --- .../src/__tests__/migration/node.function.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts index 4c0f8c7e73..005123d1fa 100644 --- a/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts @@ -57,7 +57,7 @@ describe('nodejs version migration tests', () => { ); let authStackContent = fs.readFileSync(authStackFileName).toString(); - authStackContent = authStackContent.replace('nodejs12.x', 'nodejs10.x'); + authStackContent = authStackContent.replace('nodejs14.x', 'nodejs10.x'); fs.writeFileSync(authStackFileName, authStackContent, 'utf-8'); @@ -84,8 +84,8 @@ describe('nodejs version migration tests', () => { functionStackContent = fs.readFileSync(functionStackFileName).toString(); expect(projectConfigContent.indexOf('3.1')).toBeGreaterThan(0); - expect(authStackContent.indexOf('nodejs12.x')).toBeGreaterThan(0); - expect(functionStackContent.indexOf('nodejs12.x')).toBeGreaterThan(0); + expect(authStackContent.indexOf('nodejs14.x')).toBeGreaterThan(0); + expect(functionStackContent.indexOf('nodejs14.x')).toBeGreaterThan(0); }); function amplifyNodeMigrationAndPush(cwd: string) {