sunmao-ui/config/jest.ci.config.js
2022-04-25 16:15:46 +08:00

24 lines
578 B
JavaScript

module.exports = {
rootDir: process.cwd(),
projects: [
'<rootDir>/packages/core',
'<rootDir>/packages/runtime',
'<rootDir>/packages/editor',
'<rootDir>/packages/editor-sdk',
'<rootDir>/packages/shared',
],
collectCoverage: true,
collectCoverageFrom: ['**/src/**/*.[jt]s?(x)'],
coveragePathIgnorePatterns: [],
coverageReporters: ['text-summary', 'lcov'],
coverageThreshold: {
global: {
//FIXME: increase the threshold after add unit test
branches: 0,
functions: 0,
lines: 0,
// statements: -5,
},
},
};