From e823017c41bc2cc81b21e19b9f4397a86259c8fc Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 11 Dec 2020 16:34:56 -0500 Subject: [PATCH] test: add build dirs to all jest coverage ignores --- packages/amazon-cognito-identity-js/package.json | 5 ++++- packages/analytics/package.json | 5 ++++- packages/api-graphql/package.json | 5 ++++- packages/api-rest/package.json | 5 ++++- packages/api/package.json | 5 ++++- packages/auth/package.json | 5 ++++- packages/auth/src/OAuth/urlOpener.ts | 2 +- packages/aws-amplify-react/package.json | 5 ++++- packages/aws-amplify-vue/jest.config.js | 1 + packages/aws-amplify/package.json | 5 ++++- packages/cache/package.json | 5 ++++- packages/core/package.json | 5 ++++- packages/datastore/package.json | 5 ++++- packages/interactions/package.json | 5 ++++- packages/predictions/package.json | 5 ++++- packages/pubsub/package.json | 5 ++++- packages/pushnotification/package.json | 3 ++- packages/storage/package.json | 5 ++++- packages/xr/package.json | 5 ++++- 19 files changed, 68 insertions(+), 18 deletions(-) diff --git a/packages/amazon-cognito-identity-js/package.json b/packages/amazon-cognito-identity-js/package.json index 453e60e1f72..aa32df3de6d 100644 --- a/packages/amazon-cognito-identity-js/package.json +++ b/packages/amazon-cognito-identity-js/package.json @@ -129,7 +129,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "es", + "lib" ] } } diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 2f3aeb55750..9933f09b8e7 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -91,7 +91,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ], "setupFiles": [ "/src/setupTests.ts" diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 54991266702..a729932d54d 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -91,7 +91,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 35691611bd4..be046ff1583 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -82,7 +82,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/api/package.json b/packages/api/package.json index 0b3073c469d..75f26deb278 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -85,7 +85,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/auth/package.json b/packages/auth/package.json index 98c762c0034..72da4825eb9 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -88,7 +88,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ], "testSequencer": "./testSequencer.js" } diff --git a/packages/auth/src/OAuth/urlOpener.ts b/packages/auth/src/OAuth/urlOpener.ts index d22bab50e94..32d279569ed 100644 --- a/packages/auth/src/OAuth/urlOpener.ts +++ b/packages/auth/src/OAuth/urlOpener.ts @@ -13,7 +13,7 @@ const SELF = '_self'; -export const launchUri = url => { +export const launchUri = (url: string) => { const windowProxy = window.open(url, SELF); if (windowProxy) { return Promise.resolve(windowProxy); diff --git a/packages/aws-amplify-react/package.json b/packages/aws-amplify-react/package.json index 0b769b6420d..6a1066c5ed9 100644 --- a/packages/aws-amplify-react/package.json +++ b/packages/aws-amplify-react/package.json @@ -97,7 +97,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ], "moduleNameMapper": { "\\.(css|less|scss|sass)$": "/__mocks__/styleMock.ts" diff --git a/packages/aws-amplify-vue/jest.config.js b/packages/aws-amplify-vue/jest.config.js index 780e0138c9c..57ffb87ec8e 100644 --- a/packages/aws-amplify-vue/jest.config.js +++ b/packages/aws-amplify-vue/jest.config.js @@ -17,4 +17,5 @@ module.exports = { collectCoverage: true, coverageReporters: ['lcov'], setupTestFrameworkScriptFile: '/test_setup/setup-jest.ts', + coveragePathIgnorePatterns: ['/node_modules/', 'dist'], }; diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 624914c804d..a8e6dd1262c 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -86,7 +86,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/cache/package.json b/packages/cache/package.json index 3c470a80937..97b24a28d51 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -88,7 +88,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/core/package.json b/packages/core/package.json index 0988f26c6a4..1315dae116e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -103,7 +103,10 @@ }, "testURL": "http://localhost/", "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 0f527402a0b..05cb8a95f12 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -102,7 +102,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/interactions/package.json b/packages/interactions/package.json index c7af28e8c69..8ad4db48fdf 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -82,7 +82,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 3cd4b09bece..b9ae22d0d7b 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -89,7 +89,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index a9fd080fd0c..4931c79c4c5 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -91,7 +91,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } } diff --git a/packages/pushnotification/package.json b/packages/pushnotification/package.json index fe6690c6d3a..b40f373f091 100644 --- a/packages/pushnotification/package.json +++ b/packages/pushnotification/package.json @@ -88,7 +88,8 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "lib" ] } } diff --git a/packages/storage/package.json b/packages/storage/package.json index 79badc2e9db..efb956edf8d 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -88,7 +88,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] }, "devDependencies": { diff --git a/packages/xr/package.json b/packages/xr/package.json index f3132154f31..5fa3eab13e1 100644 --- a/packages/xr/package.json +++ b/packages/xr/package.json @@ -81,7 +81,10 @@ } }, "coveragePathIgnorePatterns": [ - "/node_modules/" + "/node_modules/", + "dist", + "lib", + "lib-esm" ] } }