oav/jest.config.js

23 строки
624 B
JavaScript

// @ts-check
/** @type {jest.InitialOptions} */
module.exports = {
transform: {
"^.+\\.tsx?$": "ts-jest"
},
testEnvironment: "node",
moduleFileExtensions: ["ts", "js", "json", "node"],
moduleNameMapper: {},
collectCoverage: true,
collectCoverageFrom: ["./lib/**/*.ts", "!**/node_modules/**"],
coverageReporters: ["json", "lcov", "cobertura", "text", "html", "clover"],
coveragePathIgnorePatterns: ["/node_modules/", ".*/tests/.*"],
globals: {
"ts-jest": {
tsConfig: "tsconfig.json"
}
},
testMatch: ["**/test/**/*.ts", "!**/test/**/*.d.ts", "!**/test/sample.ts"],
verbose: true
}