mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-04 15:55:44 +03:00
75fd430149
On FE: - refreshing metadata mocks - updating jest tests - fixing storybook pages coverage - fixing storybook modules coverage
31 lines
626 B
JavaScript
31 lines
626 B
JavaScript
const globalCoverage = {
|
|
statements: 60,
|
|
lines: 60,
|
|
functions: 60,
|
|
exclude: ['src/generated/**/*'],
|
|
};
|
|
|
|
const modulesCoverage = {
|
|
statements: 70,
|
|
lines: 70,
|
|
functions: 65,
|
|
include: ['src/modules/**/*'],
|
|
exclude: ['src/**/*.ts'],
|
|
};
|
|
|
|
const pagesCoverage = {
|
|
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;
|