Browse Source

test(ui): Ignore test file coverage (#43800)

We want to know how much of our actual components are covered not tests
Scott Cooper 2 years ago
parent
commit
aa2cc51996
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jest.config.ts

+ 1 - 1
jest.config.ts

@@ -208,8 +208,8 @@ const ESM_NODE_MODULES = ['copy-text-to-clipboard'];
 const config: Config.InitialOptions = {
   verbose: false,
   collectCoverageFrom: [
-    'tests/js/spec/**/*.{js,jsx,tsx}',
     'static/app/**/*.{js,jsx,ts,tsx}',
+    '!static/app/**/*.spec.{js,jsx,ts,tsx}',
   ],
   coverageReporters: ['html', 'cobertura'],
   coverageDirectory: '.artifacts/coverage',