Skip to content

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Apr 27, 2025

To be able to analyze which code is unused outside of stories and tests, we can't create random files that are used in stories or tests. Instead, we need to define clear structures (e.g. testUtils or __stories__ directories), or inline usages.

TkDodo added 2 commits April 27, 2025 08:47
To be able to analyze which code is unused outside of stories and tests, we can't create random files that are used in stories or tests. Instead, we need to define clear structures (e.g. `testUtils` or `__stories__ directories`), or inline usages.
@TkDodo TkDodo changed the title Tkdodo/ref/inline story code ref(✂️): move code into stories that's only used in stories Apr 27, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 27, 2025
@codecov
Copy link

codecov bot commented Apr 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #90463      +/-   ##
==========================================
- Coverage   87.86%   87.82%   -0.05%     
==========================================
  Files       10276    10270       -6     
  Lines      581600   579632    -1968     
  Branches    22633    22633              
==========================================
- Hits       511046   509034    -2012     
- Misses      70120    70164      +44     
  Partials      434      434              

@TkDodo TkDodo marked this pull request as ready for review April 28, 2025 06:41
@TkDodo TkDodo requested a review from a team as a code owner April 28, 2025 06:41
@TkDodo TkDodo requested a review from a team April 28, 2025 06:41
@TkDodo TkDodo merged commit 2902182 into master Apr 28, 2025
48 checks passed
@TkDodo TkDodo deleted the tkdodo/ref/inline-story-code branch April 28, 2025 13:56
andrewshie-sentry pushed a commit that referenced this pull request May 12, 2025
To be able to analyze which code is unused outside of stories and tests,
we can't create random files that are used in stories or tests. Instead,
we need to define clear structures (e.g. `testUtils` or `__stories__`
directories), or inline usages.
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants