aqua/api/api-npm/jest.config.cjs

17 lines
317 B
JavaScript
Raw Permalink Normal View History

2023-12-06 11:33:35 +00:00
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
extensionsToTreatAsEsm: [".ts"],
preset: "ts-jest/presets/default-esm",
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
};