import type { Config } from "jest"; const config: Config = { preset: "ts-jest", moduleFileExtensions: ["js", "json", "ts"], rootDir: ".", moduleNameMapper: { "@/(.*)": "/src/$1", "test/(.*)": "/test/$1", }, testEnvironment: "node", testRegex: ".e2e-spec.ts$", transform: { "^.+\\.ts$": "ts-jest", }, setupFiles: ["/test/setEnvVars.ts", "jest-date-mock"], setupFilesAfterEnv: ["/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;