Skip to content

Commit

Permalink
ignore some things for code coverage (elastic#62701)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
timductive and elasticmachine committed Apr 9, 2020
1 parent e616805 commit 783e3c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion x-pack/legacy/plugins/canvas/scripts/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ run(
`!${path}/**/__tests__/**/*`,
'--collectCoverageFrom', // Ignore coverage on example files
`!${path}/**/__examples__/**/*`,
'--collectCoverageFrom', // Ignore flot files
`!${path}/**/flot-charts/**`,
'--collectCoverageFrom', // Ignore coverage files
`!${path}/**/coverage/**`,
'--collectCoverageFrom', // Ignore scripts
`!${path}/**/scripts/**`,
'--collectCoverageFrom', // Ignore mock files
`!${path}/**/mocks/**`,
'--collectCoverageFrom', // Include JS files
`${path}/**/*.js`,
'--collectCoverageFrom', // Include TS/X files
Expand Down Expand Up @@ -76,7 +84,7 @@ run(
--all Runs all tests and snapshots. Slower.
--storybook Runs Storybook Snapshot tests only.
--update Updates Storybook Snapshot tests.
--path <string> Runs any tests at a given path.
--path <string> Runs any tests at a given path.
--coverage Collect coverage statistics.
`,
},
Expand Down

0 comments on commit 783e3c1

Please sign in to comment.