* Fix and enhance storybook:pages tests Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Fix and enhance storybook:pages tests Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Add minor refactors Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Revert temporary changes Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Fix tests * Fix tests duplicated locale --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
30 lines
591 B
JavaScript
30 lines
591 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/**/*', '*.ts'],
|
|
};
|
|
|
|
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
|
|
|
|
module.exports =
|
|
storybookStoriesFolders === 'pages'
|
|
? pagesCoverage
|
|
: storybookStoriesFolders === 'modules'
|
|
? modulesCoverage
|
|
: globalCoverage;
|