26 lines
721 B
TypeScript
26 lines
721 B
TypeScript
import type { Config } from "jest";
|
|
|
|
const config: Config = {
|
|
preset: "ts-jest",
|
|
moduleFileExtensions: ["js", "json", "ts"],
|
|
rootDir: ".",
|
|
moduleNameMapper: {
|
|
"@/(.*)": "<rootDir>/src/$1",
|
|
"test/(.*)": "<rootDir>/test/$1",
|
|
},
|
|
testEnvironment: "node",
|
|
testRegex: ".e2e-spec.ts$",
|
|
transform: {
|
|
"^.+\\.ts$": "ts-jest",
|
|
},
|
|
setupFiles: ["<rootDir>/test/setEnvVars.ts", "jest-date-mock"],
|
|
setupFilesAfterEnv: ["<rootDir>/test/jest.setup-e2e.ts"],
|
|
reporters: ["default", "jest-summarizing-reporter"],
|
|
workerIdleMemoryLimit: "512MB",
|
|
maxWorkers: 8,
|
|
testPathIgnorePatterns: ["/dist/", "/node_modules/"],
|
|
transformIgnorePatterns: ["/dist/", "/node_modules/"],
|
|
};
|
|
|
|
export default config;
|