pdf-to-markdown/core/jest.config.js

21 lines
480 B
JavaScript
Raw Normal View History

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
2020-12-20 19:01:03 +01:00
roots: ['./test'],
transform: { '\\.ts$': ['ts-jest'] },
testRegex: '(/test/.*|(\\.|/)(test|spec))\\.(ts)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'src/(.*)': '<rootDir>/src/$1',
'test/(.*)': '<rootDir>/test/$1',
},
globals: {
'ts-jest': {
tsconfig: {
// allow js in typescript
allowJs: true,
},
},
},
};