mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-19 17:42:27 +03:00
a6542719df
* refactored Storybook UI * refactored Storybook UI * removed extra cards from the doc, added card for ui components * added hover behavior to doc page & made it look selected * separate storybook docs and tests * separating storybook tests and docs
35 lines
618 B
JavaScript
35 lines
618 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": 55,
|
|
"lines": 55,
|
|
"functions": 55,
|
|
"exclude": [
|
|
"src/generated/**/*",
|
|
"src/modules/**/*",
|
|
]
|
|
};
|
|
|
|
|
|
|
|
const storybookStoriesFolders = process.env.STORYBOOK_SCOPE;
|
|
|
|
module.exports = storybookStoriesFolders === 'pages' ?
|
|
pagesCoverage : storybookStoriesFolders === 'modules' ? modulesCoverage
|
|
: globalCoverage; |