twenty/packages/twenty-front/nyc.config.cjs
gitstart-twenty 36b467d301
Fix storybook tests (#5487)
Fixes #5486

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-05-21 20:24:08 +02:00

34 lines
674 B
JavaScript

const globalCoverage = {
branches: 45,
statements: 60,
lines: 60,
functions: 60,
exclude: ['src/generated/**/*'],
};
const modulesCoverage = {
branches: 25,
statements: 50,
lines: 50,
functions: 40,
include: ['src/modules/**/*'],
exclude: ['src/**/*.ts'],
};
const pagesCoverage = {
branches: 40,
statements: 60,
lines: 60,
functions: 45,
exclude: ['src/generated/**/*', 'src/modules/**/*', 'src/**/*.ts'],
};
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
module.exports =
storybookStoriesFolders === 'pages'
? pagesCoverage
: storybookStoriesFolders === 'modules'
? modulesCoverage
: globalCoverage;