From 5abc0d0d91ca807802fe2416abea1f9f5933ac2f Mon Sep 17 00:00:00 2001 From: Paul Marbach Date: Tue, 4 Nov 2025 14:35:56 -0500 Subject: [PATCH] Coverage: Add new exclusions for team coverage report (#112997) --- jest.config.codeowner.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jest.config.codeowner.js b/jest.config.codeowner.js index 5e1a2755949..8e26692a8d4 100644 --- a/jest.config.codeowner.js +++ b/jest.config.codeowner.js @@ -35,17 +35,20 @@ const sourceFiles = teamFiles.filter((file) => { const ext = path.extname(file); return ( ['.ts', '.tsx', '.js', '.jsx'].includes(ext) && - // exclude all tests + // exclude all tests and mocks !path.matchesGlob(file, '**/test/**/*') && !file.includes('.test.') && !file.includes('.spec.') && + !path.matchesGlob(file, '**/__mocks__/**/*') && // and storybook stories !file.includes('.story.') && // and generated files !file.includes('.gen.ts') && // and type definitions !file.includes('.d.ts') && - !file.endsWith('/types.ts') + !file.endsWith('/types.ts') && + // and anything in graveyard + !path.matchesGlob(file, '**/graveyard/**/*') ); });