jest.config.json
{
"collectCoverageFrom": ["src/**/*.ts", "!lib/**/*", "!src/__test__/**/*", "!src/index.ts"],
"coverageReporters": ["json", "lcov", "text", "html"],
"coverageThreshold": {
"global": {
"branches": 89,
"functions": 95,
"lines": 95,
"statements": 95
}
},
"preset": "ts-jest",
"testTimeout": 10000,
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
}
}