{
  "moduleFileExtensions": ["js", "json", "ts"],
  "rootDir": "../",
  "testMatch": ["**/test/integration/**/*.spec.ts"],
  "transform": {
    "^.+\\.(t|j)s$": [
      "ts-jest",
      {
        "tsconfig": "tsconfig.test.json"
      }
    ]
  },
  "collectCoverageFrom": [
    "src/infrastructure/**/*.(t|j)s",
    "!src/infrastructure/**/*.module.(t|j)s",
    "!src/infrastructure/**/index.(t|j)s"
  ],
  "coverageDirectory": "../coverage/integration",
  "testEnvironment": "node",
  "moduleNameMapper": {
    "^@domain/(.*)$": "<rootDir>/src/domain/$1",
    "@application/(.*)$": "<rootDir>/src/application/$1",
    "^@infrastructure/(.*)$": "<rootDir>/src/infrastructure/$1"
  },
  "transformIgnorePatterns": ["node_modules/(?!(@faker-js)/)"],
  "testTimeout": 30000,
  "setupFilesAfterEnv": ["<rootDir>/test/setup-integration.ts"]
}
