ignore some things for code coverage (#62701)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
e61680571a
commit
783e3c17a9
1 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
`,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue