mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-26 13:42:44 +03:00
d8c4af9279
Fix all the broken CIs :p This includes an ongoing effort to simplify test maintenance by having 1 unique source of truth about metadata and data mocks (that will later be generated from a unique source of seeds: dev = demo = test) Regressions: - Unit line coverage: 60 > 55 - Storybook Pages branch coverage: 40 > 35 We will need to write tests to increase those coverage - RelationFieldDisplay perf: 0.2ms to 0.22ms > We might have a regression here - Removed perf story about RawJSON > We will need to re-add it
34 lines
674 B
JavaScript
34 lines
674 B
JavaScript
const globalCoverage = {
|
|
branches: 45,
|
|
statements: 60,
|
|
lines: 60,
|
|
functions: 60,
|
|
exclude: ['src/generated/**/*'],
|
|
};
|
|
|
|
const modulesCoverage = {
|
|
branches: 25,
|
|
statements: 49,
|
|
lines: 50,
|
|
functions: 40,
|
|
include: ['src/modules/**/*'],
|
|
exclude: ['src/**/*.ts'],
|
|
};
|
|
|
|
const pagesCoverage = {
|
|
branches: 35,
|
|
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;
|