jest.config.js
module.exports = {
moduleFileExtensions: ["ts", "js"],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
collectCoverageFrom: ["src/**/*.ts"],
setupFilesAfterEnv: ["./tests/jest-setup.ts"],
testMatch: ["**/tests/**/*.test.ts"],
};