From f6be95a751e43efb5ecffca03b3c3663e9c61991 Mon Sep 17 00:00:00 2001 From: Clint Andrew Hall Date: Tue, 17 Sep 2019 14:50:14 -0500 Subject: [PATCH] [easy] Exclude __examples__ from coverage (#45556) Co-authored-by: Elastic Machine --- x-pack/legacy/plugins/canvas/scripts/jest.js | 2 ++ 1 file changed, 2 insertions(+) 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