Skip to content

Commit

Permalink
build(coverage): fixed test coverage to include files without tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Feb 13, 2021
1 parent 01f6e3d commit ba72630
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ module.exports = {
'^pages/(.*)$': `${docsSrc}/pages/$1`,
'^utils/(.*)$': `${docsSrc}/utils/$1`,
},
coveragePathIgnorePatterns: [
'/node_modules/',
'<rootDir>/packages/documentation/src',
'<rootDir>/testSetup',
...packages.map((name) => `<rootDir>/packages/${name}/es`),
...packages.map((name) => `<rootDir>/packages/${name}/lib`),
collectCoverageFrom: [
'<rootDir>/packages/*/src/**/*.{ts,tsx}',
// internal usage and don't matter for the library coverage reports
'!<rootDir>/packages/{dev-utils,documentation,material-icons,react-md}/src/**/*',
// these are generated files
'!<rootDir>/packages/*/src/scssVariables.ts',
// index.ts files are always `export * from "./fileOrFolder"`
'!<rootDir>/packages/**/index.ts',
],
watchPlugins: [
'jest-watch-typeahead/filename',
Expand Down

0 comments on commit ba72630

Please sign in to comment.