Skip to content

Commit

Permalink
run coverage on all source files (#3522)
Browse files Browse the repository at this point in the history
without this config, jest would only collect coverage on files that were imported in a test
  • Loading branch information
a-b-r-o-w-n authored Jun 29, 2020
1 parent 99240e9 commit f6a58cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Composer/packages/test-utils/src/base/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import path from 'path';
import { JestOverrides } from '../types';

const base: Partial<JestOverrides> = {
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],

testPathIgnorePatterns: [
'/node_modules/',
'/mocks/',
Expand Down

0 comments on commit f6a58cc

Please sign in to comment.