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

30 lines
583 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: 50,
lines: 50,
functions: 45,
include: ['src/modules/**/*'],
};
const pagesCoverage = {
statements: 50,
lines: 50,
functions: 45,
exclude: ['src/generated/**/*', 'src/modules/**/*'],
};
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
2023-09-20 00:59:08 +03:00
module.exports =
storybookStoriesFolders === 'pages'
? pagesCoverage
: storybookStoriesFolders === 'modules'
? modulesCoverage
: globalCoverage;