diff --git a/x-pack/legacy/plugins/canvas/scripts/jest.js b/x-pack/legacy/plugins/canvas/scripts/jest.js index 12a2b9921455b..7d1c8cf20362e 100644 --- a/x-pack/legacy/plugins/canvas/scripts/jest.js +++ b/x-pack/legacy/plugins/canvas/scripts/jest.js @@ -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