jest.config.js 368 B

1234567891011121314
  1. /** @type {import('ts-jest').InitialOptionsTsJest} */
  2. export default {
  3. preset: "ts-jest/presets/default-esm",
  4. extensionsToTreatAsEsm: [".ts"],
  5. transform: {
  6. "^.+\\.tsx?$": [
  7. "ts-jest",
  8. { tsconfig: "tsconfig.test.json", useESM: true },
  9. ],
  10. },
  11. moduleNameMapper: {
  12. "^(\\.{1,2}/.*)\\.js$": "$1",
  13. },
  14. };