git-rest-api/jest.config.js

27 строки
710 B
JavaScript

// @ts-check
/** @type {jest.InitialOptions} */
const config = {
transform: {
"^.+\\.ts$": "ts-jest",
},
moduleFileExtensions: ["ts", "js", "json", "node"],
moduleNameMapper: {},
collectCoverage: true,
collectCoverageFrom: ["src/**/*.ts", "!**/node_modules/**"],
coverageReporters: ["json", "lcov", "cobertura", "text", "html", "clover"],
coveragePathIgnorePatterns: ["/node_modules/", ".*/test/.*"],
modulePathIgnorePatterns: ['<rootDir>/sdk'],
globals: {
"ts-jest": {
tsConfig: "tsconfig.json",
},
},
setupFiles: ["<rootDir>/test/jest-setup.ts"],
testMatch: ["<rootDir>/src/**/*.test.ts"],
verbose: true,
testEnvironment: "node",
};
module.exports = config;