28 lines
695 B
JavaScript
28 lines
695 B
JavaScript
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
moduleFileExtensions: ["ts", "js", "json"],
|
|
coverageReporters: ["json", "lcov", "text", "clover"],
|
|
// collectCoverage: !!`Boolean(process.env.CI)`,
|
|
collectCoverageFrom: ["src/**/*.ts"],
|
|
modulePathIgnorePatterns: ["<rootDir>/tmp", "<rootDir>/lib"],
|
|
testPathIgnorePatterns: ["src/commands/test.ts"],
|
|
testTimeout: 30000,
|
|
// TODO enable threshold
|
|
// coverageThreshold: {
|
|
// global: {
|
|
// branches: 100,
|
|
// functions: 100,
|
|
// lines: 100,
|
|
// statements: 100,
|
|
// },
|
|
// },
|
|
|
|
globals: {
|
|
"ts-jest": {
|
|
tsConfig: "test/tsconfig.json",
|
|
isolatedModules: true,
|
|
},
|
|
},
|
|
}
|