[easy] Exclude __examples__ from coverage (#45556) (#45950)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Clint Andrew Hall 2019-09-17 16:36:06 -05:00 committed by GitHub
parent f5877048e7
commit c4f81466c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,8 @@ run(
`!${path}/**/build/**`,
'--collectCoverageFrom', // Ignore coverage on test files
`!${path}/**/__tests__/**/*`,
'--collectCoverageFrom', // Ignore coverage on example files
`!${path}/**/__examples__/**/*`,
'--collectCoverageFrom', // Include JS files
`${path}/**/*.js`,
'--collectCoverageFrom', // Include TS/X files