28 строки
767 B
JavaScript
28 строки
767 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/.*"],
|
|
testPathIgnorePatterns: [
|
|
"/\\.autopull/",
|
|
"/utilities.helpers.ts"
|
|
],
|
|
globals: {
|
|
"ts-jest": {
|
|
tsconfig: "tsconfig.json",
|
|
},
|
|
},
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup-file.js"],
|
|
testMatch: ["**/test/**/*.ts", "!**/test/**/*.d.ts", "!**/test/sample.ts"],
|
|
verbose: true,
|
|
};
|