From f6a58cc488fcf0b71d64954749bd65777de38f42 Mon Sep 17 00:00:00 2001 From: Andy Brown Date: Mon, 29 Jun 2020 15:37:02 -0700 Subject: [PATCH] run coverage on all source files (#3522) without this config, jest would only collect coverage on files that were imported in a test --- Composer/packages/test-utils/src/base/jest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Composer/packages/test-utils/src/base/jest.config.ts b/Composer/packages/test-utils/src/base/jest.config.ts index 12fcb9b76b..e94f02436d 100644 --- a/Composer/packages/test-utils/src/base/jest.config.ts +++ b/Composer/packages/test-utils/src/base/jest.config.ts @@ -6,6 +6,8 @@ import path from 'path'; import { JestOverrides } from '../types'; const base: Partial = { + collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'], + testPathIgnorePatterns: [ '/node_modules/', '/mocks/',