twenty/packages/twenty-front/nyc.config.cjs

31 lines
626 B
JavaScript
Raw Normal View History

2023-09-20 00:59:08 +03:00
const globalCoverage = {
statements: 60,
lines: 60,
functions: 60,
exclude: ['src/generated/**/*'],
2023-09-20 00:59:08 +03:00
};
const modulesCoverage = {
statements: 70,
lines: 70,
functions: 65,
include: ['src/modules/**/*'],
exclude: ['src/**/*.ts'],
};
const pagesCoverage = {
statements: 55,
lines: 55,
functions: 45,
exclude: ['src/generated/**/*', 'src/modules/**/*', 'src/**/*.ts'],
};
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
2023-09-20 00:59:08 +03:00
module.exports =
storybookStoriesFolders === 'pages'
? pagesCoverage
: storybookStoriesFolders === 'modules'
? modulesCoverage
: globalCoverage;