24 lines
664 B
JavaScript
24 lines
664 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/test'],
|
|
testPathIgnorePatterns: ['/node_modules/', '/test/integration/'],
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
transform: {
|
|
'^.+\\.tsx?$': ['ts-jest', {
|
|
tsconfig: {
|
|
strict: true,
|
|
target: 'ES2017',
|
|
module: 'CommonJS',
|
|
moduleResolution: 'node',
|
|
esModuleInterop: true,
|
|
lib: ['ES2019', 'DOM'],
|
|
types: ['jest'],
|
|
},
|
|
}],
|
|
},
|
|
};
|