Skip to content

Commit

Permalink
Adjust jest configs
Browse files Browse the repository at this point in the history
  • Loading branch information
drozdzynski committed May 21, 2024
1 parent 824c009 commit 6ba264f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/svelte/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
'ts-jest',
{
useESM: true,
tsconfig: 'tsconfig.json',
tsconfig: '<rootDir>/packages/svelte/tsconfig.json',
},
],
'^.+\\.svelte$': [
Expand All @@ -27,7 +27,7 @@ export default {
rootDir: '../..',
testMatch: ['<rootDir>/packages/svelte/**/*.test.ts'],
moduleNameMapper: {
'^@teiler\\/(.*)$': '<rootDir>/packages/$1',
'^@teiler/(.*)$': '<rootDir>/packages/$1/src',
},
coverageThreshold: {
global: {
Expand Down
5 changes: 4 additions & 1 deletion packages/svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"verbatimModuleSyntax": false,
"skipLibCheck": true
"skipLibCheck": true,
"paths": {
"@teiler/core": ["../core/src"]
}
},
"composite": true,
"compileOnSave": false,
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
tsconfig: '<rootDir>/packages/vue/tsconfig.json',
},
],
},
Expand All @@ -18,7 +18,7 @@ export default {
rootDir: '../..',
testMatch: ['<rootDir>/packages/vue/**/*.test.ts'],
moduleNameMapper: {
'^@teiler\\/(.*)$': '<rootDir>/packages/$1',
'^@teiler/(.*)$': '<rootDir>/packages/$1/src',
},
coverageThreshold: {
global: {
Expand Down
5 changes: 4 additions & 1 deletion packages/vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"verbatimModuleSyntax": false,
"skipLibCheck": true
"skipLibCheck": true,
"paths": {
"@teiler/core": ["../core/src"]
}
},
"compileOnSave": false,
}

0 comments on commit 6ba264f

Please sign in to comment.