chronocat/jest.config.ts

23 lines
465 B
TypeScript
Raw Normal View History

2024-03-03 15:49:16 +00:00
import type { JestConfigWithTsJest } from 'ts-jest'
const config: JestConfigWithTsJest = {
preset: 'ts-jest/presets/default-esm',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.m?[tj]sx?$': [
'ts-jest',
{
useESM: true,
},
],
},
collectCoverage: true,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
}
// eslint-disable-next-line import/no-default-export
export default config