Skip to content

Commit

Permalink
chore: update console integration test (#6344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Hajdrik authored Jan 8, 2021
1 parent dfe7150 commit 12eb35f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-console-integration-tests/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

0 comments on commit 12eb35f

Please sign in to comment.