From 12eb35fce212fded4c4fe6024343468c53b29b3a Mon Sep 17 00:00:00 2001 From: Attila Hajdrik Date: Fri, 8 Jan 2021 09:24:11 -0800 Subject: [PATCH] chore: update console integration test (#6344) --- .eslintrc.js | 1 + .gitignore | 1 + packages/amplify-console-integration-tests/src/util.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 819da2a1a3e..cc8ca0d9096 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -316,6 +316,7 @@ module.exports = { '/packages/amplify-util-headless-input/lib', 'packages/amplify-graphql-*transformer*/lib', '/packages/amplify-provider-awscloudformation/lib', + '/packages/amplify-console-integration-tests/lib', // Ignore CHANGELOG.md files '/packages/*/CHANGELOG.md', diff --git a/.gitignore b/.gitignore index 229f89933e5..2900f38689d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ packages/amplify-category-api/lib packages/amplify-category-auth/lib packages/amplify-category-storage/lib packages/amplify-e2e-tests/amplify-e2e-reports +packages/amplify-console-integration-tests/lib packages/amplify-console-integration-tests/console-integration-reports packages/amplify-migration-tests/amplify-migration-reports packages/amplify-migration-tests/lib diff --git a/packages/amplify-console-integration-tests/src/util.ts b/packages/amplify-console-integration-tests/src/util.ts index 94f149d6ea7..545619c2144 100644 --- a/packages/amplify-console-integration-tests/src/util.ts +++ b/packages/amplify-console-integration-tests/src/util.ts @@ -18,6 +18,6 @@ function stripBOM(content: string) { return content; } -export function readJsonFileSync(jsonFilePath: string, encoding: string = 'utf8'): any { +export function readJsonFileSync(jsonFilePath: string, encoding: BufferEncoding = 'utf8'): any { return JSON.parse(stripBOM(fs.readFileSync(jsonFilePath, encoding))); }