Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure coverage flags for storybook/vitest #772

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Jan 13, 2025

Closes #724

Storybook and vitest cover different parts of the codebase, and coverage checks fail sometimes because one is still running/not uploaded yet while the other one is. Tracking the coverage of these separately allows us to better judge which job produces which coverage.

Storybook tests should focus on interaction and not much on coverage, whereas vitest tests should ensure sufficient coverage is achieved.

Storybook and vitest cover different parts of the codebase, and
coverage checks fail sometimes because one is still running/not
uploaded yet while the other one is. Tracking the coverage of these
separately allows us to better judge which job produces which
coverage.

Storybook tests should focus on interaction and not much on coverage,
whereas vitest tests should ensure sufficient coverage is achieved.
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.85%. Comparing base (ea277d9) to head (b51321e).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #772      +/-   ##
==========================================
+ Coverage   80.76%   81.85%   +1.09%     
==========================================
  Files         235      235              
  Lines        4850     4850              
  Branches     1316     1316              
==========================================
+ Hits         3917     3970      +53     
+ Misses        901      847      -54     
- Partials       32       33       +1     
Flag Coverage Δ
storybook 75.31% <ø> (?)
vitest 59.01% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens merged commit 36b566b into main Jan 13, 2025
16 checks passed
@sergei-maertens sergei-maertens deleted the chore/724-codecov-flags branch January 13, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update toolchain (Jest/Vitest/ViteJS/TS)
1 participant