Merge pull request #588 from Shopify/test-coverage

Adjusts how test coverage gets collected
This commit is contained in:
Max Hoffmann 2023-10-11 14:43:54 -07:00 committed by GitHub
commit ef4245590d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/(.*)': '<rootDir>/src/shared/$1',