{
  "moduleFileExtensions": ["js", "json", "ts"],
  "rootDir": "..",
  "roots": ["<rootDir>/test"],
  "testEnvironment": "node",
  "testRegex": "test/.*\\.e2e-spec\\.ts$",
  "transform": {
    "^.+\\.(t|j)sx?$": ["ts-jest", { "useESM": false, "tsconfig": "tsconfig.json" }]
  },
  "transformIgnorePatterns": ["/node_modules/"],
  "moduleNameMapper": {
    "^jose$": "<rootDir>/test/mocks/jose.mock.ts",
    "^ioredis$": "<rootDir>/test/mocks/ioredis.mock.ts",
    "^@prisma/client$": "<rootDir>/test/mocks/prisma.mock.ts",
    "^@nestjs/bullmq$": "<rootDir>/test/mocks/bullmq.mock.ts",
    "^@qdrant/js-client-rest$": "<rootDir>/test/mocks/qdrant.mock.ts"
  },
  "globals": {
    "DATABASE_URL": "mysql://test:test@localhost:3306/test_db",
    "CREDENTIAL_ENCRYPTION_KEY": "m-ai-04-e2e-test-key-32-bytes!!",
    "JWT_SECRET": "m-ai-04-e2e-jwt-secret"
  },
  "setupFiles": ["<rootDir>/test/m-ai-04-e2e-setup.ts"]
}
