2023-09-20 00:59:08 +03:00
|
|
|
const globalCoverage = {
|
|
|
|
"statements": 60,
|
|
|
|
"lines": 60,
|
|
|
|
"functions": 60,
|
|
|
|
"exclude": [
|
|
|
|
"src/generated/**/*",
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
2023-09-19 05:07:38 +03:00
|
|
|
const modulesCoverage = {
|
|
|
|
"statements": 50,
|
|
|
|
"lines": 50,
|
|
|
|
"functions": 45,
|
|
|
|
"include": [
|
|
|
|
"src/modules/**/*",
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
const pagesCoverage = {
|
2023-10-26 12:32:44 +03:00
|
|
|
"statements": 50,
|
|
|
|
"lines": 50,
|
|
|
|
"functions": 45,
|
2023-09-19 05:07:38 +03:00
|
|
|
"exclude": [
|
|
|
|
"src/generated/**/*",
|
|
|
|
"src/modules/**/*",
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
2023-10-16 23:06:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
|
2023-09-20 00:59:08 +03:00
|
|
|
|
|
|
|
module.exports = storybookStoriesFolders === 'pages' ?
|
|
|
|
pagesCoverage : storybookStoriesFolders === 'modules' ? modulesCoverage
|
2023-10-26 12:32:44 +03:00
|
|
|
: globalCoverage;
|