1234567891011121314151617181920 |
- /** @type {import('ts-jest').JestConfigWithTsJest} */
- module.exports = {
- preset: "ts-jest",
- testEnvironment: "node",
- maxWorkers: 1,
- extensionsToTreatAsEsm: [".ts"],
- moduleNameMapper: {
- "^(\\.{1,2}/.*)\\.js$": "$1"
- },
- transform: {
- // '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
- // '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
- "^.+\\.tsx?$": [
- "ts-jest",
- {
- useESM: true
- }
- ]
- }
- };
|