ignore some things for code coverage (#62701)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Tim Schnell 2020-04-09 14:32:24 -05:00 committed by GitHub
parent e61680571a
commit 783e3c17a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
@ -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.
`,
},