12 lines
315 B
JavaScript
12 lines
315 B
JavaScript
|
|
module.exports = {
|
||
|
|
preset: 'ts-jest',
|
||
|
|
testEnvironment: 'node',
|
||
|
|
roots: ['<rootDir>/src'],
|
||
|
|
testMatch: ['**/__tests__/**/*.ts', '**/*.test.ts'],
|
||
|
|
transform: {
|
||
|
|
'^.+\\.tsx?$': 'ts-jest'
|
||
|
|
},
|
||
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
||
|
|
moduleDirectories: ['node_modules', 'src']
|
||
|
|
};
|