fix: fix storybook coverage task (#5256)
- Fixes storybook coverage command: the coverage directory path was incorrect, but instead of failing `storybook:test --configuration=ci`, it was hanging indefinitely. - Switches back to `concurrently` to launch `storybook:static` and `storybook:test` in parallel, which allows to use options to explicitly kill `storybook:static` when `storybook:test` fails. - Moves `storybook:test --configuration=ci` to its own command `storybook:static:test`: used in the CI, and can be used locally to run storybook tests without having to launch `storybook:dev` first. - Creates command `storybook:coverage` and enables cache for this command. - Fixes Jest tests that were failing. - Improves caching conditions for some tasks (for instance, no need to invalidate Jest test cache if only Storybook story files were modified).
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
const globalCoverage = {
|
||||
branches: 45,
|
||||
statements: 60,
|
||||
lines: 60,
|
||||
functions: 60,
|
||||
@ -6,6 +7,7 @@ const globalCoverage = {
|
||||
};
|
||||
|
||||
const modulesCoverage = {
|
||||
branches: 45,
|
||||
statements: 70,
|
||||
lines: 70,
|
||||
functions: 65,
|
||||
@ -14,6 +16,7 @@ const modulesCoverage = {
|
||||
};
|
||||
|
||||
const pagesCoverage = {
|
||||
branches: 45,
|
||||
statements: 60,
|
||||
lines: 60,
|
||||
functions: 45,
|
||||
|
||||
Reference in New Issue
Block a user