Skip to content

Commit

Permalink
test: fix jest config on windows (#2765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frezc committed Nov 25, 2020
1 parent 6fc8409 commit 05c9bed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions packages/scope-manager/jest.config.js
Expand Up @@ -10,11 +10,11 @@ module.exports = {
},
testEnvironment: 'node',
transform: {
[/^.+\.tsx?$/.source]: 'ts-jest',
['^.+\\.tsx?$']: 'ts-jest',
},
testRegex: [
/.\/tests\/.+\.test\.ts$/.source,
/.\/tests\/eslint-scope\/[^/]+\.test\.ts$/.source,
'./tests/.+\\.test\\.ts$',
'./tests/eslint-scope/[^/]+\\.test\\.ts$',
],
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
Expand Down
4 changes: 2 additions & 2 deletions packages/types/jest.config.js
Expand Up @@ -10,9 +10,9 @@ module.exports = {
},
testEnvironment: 'node',
transform: {
[/^.+\.tsx?$/.source]: 'ts-jest',
['^.+\\.tsx?$']: 'ts-jest',
},
testRegex: [/.\/tests\/.+\.test\.ts$/.source],
testRegex: ['./tests/.+\\.test\\.ts$'],
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
Expand Down
8 changes: 4 additions & 4 deletions packages/typescript-estree/jest.config.js
Expand Up @@ -3,12 +3,12 @@
module.exports = {
testEnvironment: 'node',
transform: {
[/^.+\.tsx?$/.source]: 'ts-jest',
['^.+\\.tsx?$']: 'ts-jest',
},
testRegex: [
/.\/tests\/lib\/.*\.ts$/.source,
/.\/tests\/ast-alignment\/spec\.ts$/.source,
/.\/tests\/[^\/]+\.test\.ts$/.source,
'./tests/lib/.*\\.ts$',
'./tests/ast-alignment/spec\\.ts$',
'./tests/[^/]+\\.test\\.ts$',
],
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
Expand Down
4 changes: 2 additions & 2 deletions packages/visitor-keys/jest.config.js
Expand Up @@ -10,9 +10,9 @@ module.exports = {
},
testEnvironment: 'node',
transform: {
[/^.+\.tsx?$/.source]: 'ts-jest',
['^.+\\.tsx?$']: 'ts-jest',
},
testRegex: [/.\/tests\/.+\.test\.ts$/.source],
testRegex: ['./tests/.+\\.test\\.ts$'],
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
Expand Down

0 comments on commit 05c9bed

Please sign in to comment.