Skip to content

Commit

Permalink
test: add build dirs to all jest coverage ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Dec 11, 2020
1 parent 12cf9dc commit e823017
Show file tree
Hide file tree
Showing 19 changed files with 68 additions and 18 deletions.
5 changes: 4 additions & 1 deletion packages/amazon-cognito-identity-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"es",
"lib"
]
}
}
5 changes: 4 additions & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
],
"setupFiles": [
"<rootDir>/src/setupTests.ts"
Expand Down
5 changes: 4 additions & 1 deletion packages/api-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/api-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
],
"testSequencer": "./testSequencer.js"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/OAuth/urlOpener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion packages/aws-amplify-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
],
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "<rootDir>/__mocks__/styleMock.ts"
Expand Down
1 change: 1 addition & 0 deletions packages/aws-amplify-vue/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ module.exports = {
collectCoverage: true,
coverageReporters: ['lcov'],
setupTestFrameworkScriptFile: '<rootDir>/test_setup/setup-jest.ts',
coveragePathIgnorePatterns: ['/node_modules/', 'dist'],
};
5 changes: 4 additions & 1 deletion packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@
},
"testURL": "http://localhost/",
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/predictions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
5 changes: 4 additions & 1 deletion packages/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}
3 changes: 2 additions & 1 deletion packages/pushnotification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"lib"
]
}
}
5 changes: 4 additions & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/xr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@
}
},
"coveragePathIgnorePatterns": [
"/node_modules/"
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
}
}

0 comments on commit e823017

Please sign in to comment.