aqua/api/api-npm/jest.config.cjs
InversionSpaces 46ab9e223f Add test
2023-12-06 11:33:35 +00:00

17 lines
317 B
JavaScript

/** @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,
},
],
},
};