diff --git a/extension/jest.config.js b/extension/jest.config.js index 26719224c2..81f44baeec 100644 --- a/extension/jest.config.js +++ b/extension/jest.config.js @@ -2,7 +2,7 @@ module.exports = { coverageDirectory: 'coverage/jest', - coveragePathIgnorePatterns: ['/src/test/'], + coveragePathIgnorePatterns: ['/src/test/', '/node_modules/'], coverageReporters: ['json'], testEnvironment: 'node', testPathIgnorePatterns: [ diff --git a/languageServer/jest.config.js b/languageServer/jest.config.js index 59f31b1164..e8a53bfb8a 100644 --- a/languageServer/jest.config.js +++ b/languageServer/jest.config.js @@ -1,7 +1,6 @@ module.exports = { - collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/*.test.*', '!src/test/*'], coverageDirectory: 'coverage/jest', - coveragePathIgnorePatterns: ['/src/test/'], + coveragePathIgnorePatterns: ['/src/test/', '/node_modules/'], coverageReporters: ['json'], testEnvironment: 'node', testPathIgnorePatterns: ['/dist/'], diff --git a/webview/jest.config.js b/webview/jest.config.js index df940756d4..e190688a8b 100644 --- a/webview/jest.config.js +++ b/webview/jest.config.js @@ -1,13 +1,12 @@ /* global module */ module.exports = { - collectCoverageFrom: [ - 'src/**/*.{ts,tsx}', - '!**/*.test.*', - '!src/stories/**/*.{ts,tsx}', - '!src/test/*', - '!src/shared/components/icons/*', - '!src/util/wdyr.ts' + coveragePathIgnorePatterns: [ + '/src/test/', + '/node_modules/', + '/src/stories/', + '/src/shared/components/icons/', + '/src/util/wdyr.ts' ], coverageDirectory: 'coverage/jest', coverageReporters: ['json'],