2023-09-20 00:59:08 +03:00
|
|
|
const globalCoverage = {
|
2024-05-03 15:59:09 +03:00
|
|
|
branches: 45,
|
2024-01-13 14:35:30 +03:00
|
|
|
statements: 60,
|
|
|
|
lines: 60,
|
|
|
|
functions: 60,
|
|
|
|
exclude: ['src/generated/**/*'],
|
2023-09-20 00:59:08 +03:00
|
|
|
};
|
|
|
|
|
2023-09-19 05:07:38 +03:00
|
|
|
const modulesCoverage = {
|
2024-05-21 21:24:08 +03:00
|
|
|
branches: 25,
|
2024-06-12 17:31:07 +03:00
|
|
|
statements: 49,
|
2024-05-21 21:24:08 +03:00
|
|
|
lines: 50,
|
2024-10-30 17:50:56 +03:00
|
|
|
functions: 38,
|
2024-01-13 14:35:30 +03:00
|
|
|
include: ['src/modules/**/*'],
|
2024-02-24 21:12:21 +03:00
|
|
|
exclude: ['src/**/*.ts'],
|
2023-09-19 05:07:38 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const pagesCoverage = {
|
2024-10-05 01:22:38 +03:00
|
|
|
branches: 35,
|
2024-04-17 17:24:04 +03:00
|
|
|
statements: 60,
|
|
|
|
lines: 60,
|
2024-01-13 14:35:30 +03:00
|
|
|
functions: 45,
|
2024-02-24 21:12:21 +03:00
|
|
|
exclude: ['src/generated/**/*', 'src/modules/**/*', 'src/**/*.ts'],
|
2023-09-19 05:07:38 +03:00
|
|
|
};
|
|
|
|
|
2023-10-16 23:06:07 +03:00
|
|
|
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
|
2023-09-20 00:59:08 +03:00
|
|
|
|
2024-01-13 14:35:30 +03:00
|
|
|
module.exports =
|
|
|
|
storybookStoriesFolders === 'pages'
|
|
|
|
? pagesCoverage
|
|
|
|
: storybookStoriesFolders === 'modules'
|
|
|
|
? modulesCoverage
|
|
|
|
: globalCoverage;
|