29 lines
666 B
JSON
29 lines
666 B
JSON
{
|
|
"moduleFileExtensions": ["js", "json", "ts"],
|
|
"rootDir": "..",
|
|
"testRegex": "test/.*\\.e2e-spec\\.ts$",
|
|
"transform": {
|
|
"^.+\\.ts$": [
|
|
"ts-jest",
|
|
{
|
|
"useESM": true,
|
|
"tsconfig": {
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"target": "ES2022",
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"extensionsToTreatAsEsm": [".ts"],
|
|
"moduleNameMapper": {
|
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
"^(\\.{1,2}/.*)\\.js$": "$1"
|
|
},
|
|
"testEnvironment": "node",
|
|
"testTimeout": 30000,
|
|
"maxWorkers": 1,
|
|
"preset": "ts-jest/presets/default-esm"
|
|
}
|