diff --git a/packages/svelte/jest.config.js b/packages/svelte/jest.config.js index d03d7d7..a56eedd 100644 --- a/packages/svelte/jest.config.js +++ b/packages/svelte/jest.config.js @@ -4,7 +4,7 @@ export default { 'ts-jest', { useESM: true, - tsconfig: 'tsconfig.json', + tsconfig: '/packages/svelte/tsconfig.json', }, ], '^.+\\.svelte$': [ @@ -27,7 +27,7 @@ export default { rootDir: '../..', testMatch: ['/packages/svelte/**/*.test.ts'], moduleNameMapper: { - '^@teiler\\/(.*)$': '/packages/$1', + '^@teiler/(.*)$': '/packages/$1/src', }, coverageThreshold: { global: { diff --git a/packages/svelte/tsconfig.json b/packages/svelte/tsconfig.json index 7089609..72939d7 100644 --- a/packages/svelte/tsconfig.json +++ b/packages/svelte/tsconfig.json @@ -22,7 +22,10 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "verbatimModuleSyntax": false, - "skipLibCheck": true + "skipLibCheck": true, + "paths": { + "@teiler/core": ["../core/src"] + } }, "composite": true, "compileOnSave": false, diff --git a/packages/vue/jest.config.js b/packages/vue/jest.config.js index cd2bdc1..c42d1cc 100644 --- a/packages/vue/jest.config.js +++ b/packages/vue/jest.config.js @@ -3,7 +3,7 @@ export default { '^.+\\.tsx?$': [ 'ts-jest', { - tsconfig: 'tsconfig.json', + tsconfig: '/packages/vue/tsconfig.json', }, ], }, @@ -18,7 +18,7 @@ export default { rootDir: '../..', testMatch: ['/packages/vue/**/*.test.ts'], moduleNameMapper: { - '^@teiler\\/(.*)$': '/packages/$1', + '^@teiler/(.*)$': '/packages/$1/src', }, coverageThreshold: { global: { diff --git a/packages/vue/tsconfig.json b/packages/vue/tsconfig.json index 824c903..ec112dc 100644 --- a/packages/vue/tsconfig.json +++ b/packages/vue/tsconfig.json @@ -22,7 +22,10 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "verbatimModuleSyntax": false, - "skipLibCheck": true + "skipLibCheck": true, + "paths": { + "@teiler/core": ["../core/src"] + } }, "compileOnSave": false, } \ No newline at end of file