Skip to content

Commit

Permalink
Update 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 919c319
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
6 changes: 3 additions & 3 deletions extension/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

module.exports = {
coverageDirectory: 'coverage/jest',
coveragePathIgnorePatterns: ['<rootDir>/src/test/'],
coveragePathIgnorePatterns: ['<rootDir>/src/test/', '/node_modules/'],
coverageReporters: ['json'],
testEnvironment: 'node',
testPathIgnorePatterns: [
'<rootDir>/src/test/',
'<rootDir>/dist/',
'<rootDir>/.vscode-test',
'<rootDir>/.wdio-vscode-service'
'<rootDir>/.vscode-test/',
'<rootDir>/.wdio-vscode-service/'
],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest']
Expand Down
7 changes: 6 additions & 1 deletion extension/src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ function setupNyc() {
cache: true,
cacheDir: join(cwd, '.cache', 'nyc'),
cwd,
exclude: [...defaultExclude, '**/test/**', '**/.vscode-test/**'],
exclude: [
...defaultExclude,
'**/test/**',
'**/.vscode-test/**',
'**/.wdio-vscode-service/**'
],
extensions: ['ts'],
hookRequire: true,
hookRunInContext: true,
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
14 changes: 6 additions & 8 deletions webview/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/* global module */

module.exports = {
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!**/*.test.*',
'!src/stories/**/*.{ts,tsx}',
'!src/test/*',
'!src/shared/components/icons/*',
'!src/util/wdyr.ts'
],
coverageDirectory: 'coverage/jest',
coveragePathIgnorePatterns: [
'<rootDir>/src/test/',
'/node_modules/',
'<rootDir>/src/stories/',
'<rootDir>/src/util/wdyr.ts'
],
coverageReporters: ['json'],
globals: {
__webpack_public_path__: true
Expand Down

0 comments on commit 919c319

Please sign in to comment.