twenty/packages/twenty-front/nyc.config.cjs
Thaïs 95326b2828
fix: fix Relation field optimistic effect on Record update (#3352)
* fix: fix Relation field optimistic effect on Record update

Related to #3099

* Fix lint

* Fix

* fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-01-13 12:35:30 +01:00

30 lines
583 B
JavaScript

const globalCoverage = {
statements: 60,
lines: 60,
functions: 60,
exclude: ['src/generated/**/*'],
};
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;
module.exports =
storybookStoriesFolders === 'pages'
? pagesCoverage
: storybookStoriesFolders === 'modules'
? modulesCoverage
: globalCoverage;