mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-22 15:36:57 +00:00
23 lines
465 B
TypeScript
23 lines
465 B
TypeScript
|
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
|