From a4315e5d10ddcbd7feaf0dd386a05d6a051e975c Mon Sep 17 00:00:00 2001 From: Max Hoffmann Date: Wed, 11 Oct 2023 13:16:19 -0700 Subject: [PATCH] Adjusts how test coverage gets collected --- jest.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index ac214a72..2f2e4d3e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,10 +8,9 @@ module.exports = { }, moduleFileExtensions: ['js', 'ts'], collectCoverageFrom: [ - 'src/**/*.js', - '!src/**/*/index.js', - '!src/index.js', - '!src/index.legacy.js', + 'src/**/*.{js,ts}', + '!src/**/*/index.{js,ts}', + '!src/index.{js,ts}', ], moduleNameMapper: { 'shared/(.*)': '/src/shared/$1',