2020-10-26 02:32:04 +03:00
|
|
|
module.exports = {
|
|
|
|
preset: 'ts-jest',
|
|
|
|
setupFilesAfterEnv: ['<rootDir>/test/setup.ts'],
|
2021-08-27 19:08:40 +03:00
|
|
|
testEnvironment: 'jsdom',
|
2021-08-30 04:32:29 +03:00
|
|
|
moduleNameMapper: {
|
2021-11-06 20:28:35 +03:00
|
|
|
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
|
2021-08-30 04:32:29 +03:00
|
|
|
},
|
2022-10-29 00:15:02 +03:00
|
|
|
transform: {
|
2023-01-03 01:16:20 +03:00
|
|
|
'^.+\\.jsx?$': 'babel-jest',
|
2022-10-29 00:15:02 +03:00
|
|
|
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
|
2022-01-23 00:51:27 +03:00
|
|
|
},
|
2023-01-03 03:58:10 +03:00
|
|
|
transformIgnorePatterns: [
|
2023-08-21 02:49:11 +03:00
|
|
|
'node_modules/(?!.pnpm|@babel/code-frame|@babel/highlight|@babel/helper-validator-identifier|d3|dateformat|delaunator|internmap|nanoid|robust-predicates|uuid)',
|
2023-01-03 03:58:10 +03:00
|
|
|
],
|
2020-10-26 02:32:04 +03:00
|
|
|
};
|