You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
685 B

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>'],
testMatch: ['**/*.test.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
],
transform: {
'^.+\\.ts$': ['ts-jest', {
tsconfig: 'tsconfig.test.json',
}],
},
// Don't transform AsciiDoctor packages - they use Opal runtime which breaks with Jest transformation
// AsciiDoctor uses CommonJS and Opal runtime, so we need to exclude it from transformation
// The pattern matches paths to ignore (not transform)
transformIgnorePatterns: [
'/node_modules/@asciidoctor/',
],
};