sunmao-ui/config/jest.config.js
2021-07-02 16:06:02 +08:00

17 lines
440 B
JavaScript

module.exports = {
transform: {
".ts": "ts-jest",
},
globals: {
"ts-jest": {
diagnostics: false,
},
},
moduleFileExtensions: ["ts", "js"],
testMatch: ["<rootDir>/__tests__/**/**.spec.ts"],
testPathIgnorePatterns: ["/node_modules/", "/lib/", "<rootDir>/lib/"],
collectCoverage: Boolean(process.env.COVERAGE),
collectCoverageFrom: ["<rootDir>/src/**/*.ts"],
coveragePathIgnorePatterns: ["generated"],
};