module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: ['/src'], testMatch: ['**/__tests__/**/*.test.ts', '**/?(*.)+(spec|test).ts'], testPathIgnorePatterns: ['/node_modules/', '/dist/', 'asciidoc.test.ts'], transform: { '^.+\\.ts$': ['ts-jest', { tsconfig: { esModuleInterop: true, }, }], '^.+\\.js$': 'babel-jest', }, moduleFileExtensions: ['ts', 'js', 'json'], moduleNameMapper: { '^marked$': '/node_modules/marked/lib/marked.umd.js', }, collectCoverageFrom: [ 'src/**/*.ts', '!src/**/*.d.ts', ], };