oav/jest.config.js

28 строки
767 B
JavaScript
Исходник Постоянная ссылка Обычный вид История

// @ts-check
/** @type {jest.InitialOptions} */
module.exports = {
transform: {
2020-11-24 06:07:36 +03:00
"^.+\\.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",
2020-11-24 06:07:36 +03:00
},
},
setupFilesAfterEnv: ["<rootDir>/jest.setup-file.js"],
testMatch: ["**/test/**/*.ts", "!**/test/**/*.d.ts", "!**/test/sample.ts"],
2020-11-24 06:07:36 +03:00
verbose: true,
};