granite-math-sdk
Version:
Granite math sdk
34 lines (33 loc) • 839 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/src", "<rootDir>/test"],
testMatch: ["**/*.test.ts"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
// Coverage configuration
collectCoverageFrom: [
"src/**/*.{ts,tsx}",
"!src/index.ts", // Exclude index file if it's just exports
"!src/types.ts", // Exclude type definitions
"!src/constants.ts", // Exclude constants file
],
coverageThreshold: {
global: {
statements: 90,
branches: 65,
functions: 90,
lines: 90,
},
"./src/modules/*.ts": {
statements: 93,
branches: 65,
functions: 100,
lines: 95,
},
},
coverageReporters: ["text", "html", "json-summary", "json"],
coverageDirectory: "coverage",
};