diff --git a/web/jest.config.js b/web/jest.config.js index 2f057a36..8095289e 100644 --- a/web/jest.config.js +++ b/web/jest.config.js @@ -1,6 +1,6 @@ const regeneratorRuntime = require('regenerator-runtime'); const { pathsToModuleNameMapper } = require('ts-jest'); -const webCompilerOptions = require('./tsconfig.json').compilerOptions; +const webCompilerOptions = require('./tsconfig.test.json').compilerOptions; /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { @@ -25,5 +25,8 @@ module.exports = { setupFilesAfterEnv: [], globals: { window: {}, + 'ts-jest': { + tsconfig: 'tsconfig.test.json', + }, }, }; diff --git a/web/tsconfig.test.json b/web/tsconfig.test.json new file mode 100644 index 00000000..4f7b0369 --- /dev/null +++ b/web/tsconfig.test.json @@ -0,0 +1,12 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": { + "@/*": ["./src/*"], + "@test/*": ["./test/*"], + "@assets/*": ["./assets/*"], + "tailchat-design": ["../packages/design/components"], + "@capital/*": ["./src/plugin/*"] + } + } +}