33 lines
713 B
JavaScript
33 lines
713 B
JavaScript
|
|
/** @type {import('jest').Config} */
|
|||
|
|
module.exports = {
|
|||
|
|
preset: "ts-jest",
|
|||
|
|
testEnvironment: "node",
|
|||
|
|
roots: ["<rootDir>/tests"],
|
|||
|
|
testMatch: ["**/*.test.ts"],
|
|||
|
|
testTimeout: 15000,
|
|||
|
|
collectCoverageFrom: ["src/**/*.ts"],
|
|||
|
|
coveragePathIgnorePatterns: ["/node_modules/", "/dist/"],
|
|||
|
|
coverageThreshold: {
|
|||
|
|
global: {
|
|||
|
|
statements: 85,
|
|||
|
|
branches: 75,
|
|||
|
|
functions: 85,
|
|||
|
|
lines: 85
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
reporters: [
|
|||
|
|
"default",
|
|||
|
|
[
|
|||
|
|
"jest-junit",
|
|||
|
|
{
|
|||
|
|
outputDirectory: "build",
|
|||
|
|
outputName: "junit-typhon.xml",
|
|||
|
|
suiteName: "typhon",
|
|||
|
|
classNameTemplate: "{classname}",
|
|||
|
|
titleTemplate: "{title}",
|
|||
|
|
ancestorSeparator: " › "
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
]
|
|||
|
|
};
|