| 1 | /** @type {import('ts-jest').JestConfigWithTsJest} */ |
| 2 | module.exports = { |
| 3 | preset: "ts-jest", |
| 4 | testEnvironment: "node", |
| 5 | testMatch: ["**/__tests__/**/*.ts", "**/?(*.)+(spec|test).ts"], |
| 6 | testPathIgnorePatterns: ["/node_modules/", "/dist/", "/__tests__/mocks/"], |
| 7 | coveragePathIgnorePatterns: ["/node_modules/", "/dist/", "/__tests__/"], |
| 8 | setupFilesAfterEnv: ["./jest.setup.js"], |
| 9 | forceExit: true, |
| 10 | clearMocks: true, |
| 11 | resetMocks: true, |
| 12 | restoreMocks: true, |
| 13 | }; |