Skip to content

Commit

Permalink
Update Jest's coverage path ignore patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed May 10, 2023
1 parent b92c13e commit b9f0cda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion extension/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = {
coverageDirectory: 'coverage/jest',
coveragePathIgnorePatterns: ['<rootDir>/src/test/'],
coveragePathIgnorePatterns: ['<rootDir>/src/test/', '/node_modules/'],
coverageReporters: ['json'],
testEnvironment: 'node',
testPathIgnorePatterns: [
Expand Down
3 changes: 1 addition & 2 deletions languageServer/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/*.test.*', '!src/test/*'],
coverageDirectory: 'coverage/jest',
coveragePathIgnorePatterns: ['<rootDir>/src/test/'],
coveragePathIgnorePatterns: ['<rootDir>/src/test/', '/node_modules/'],
coverageReporters: ['json'],
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/dist/'],
Expand Down
13 changes: 6 additions & 7 deletions webview/jest.config.js
Original file line number Diff line number Diff line change
@@ -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: [
'<rootDir>/src/test/',
'/node_modules/',
'<rootDir>/src/stories/',
'<rootDir>/src/shared/components/icons/',
'<rootDir>/src/util/wdyr.ts'
],
coverageDirectory: 'coverage/jest',
coverageReporters: ['json'],
Expand Down

0 comments on commit b9f0cda

Please sign in to comment.