fix: sanitize story titles#328
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #328 +/- ##
=======================================
Coverage 91.47% 91.47%
=======================================
Files 22 22
Lines 598 598
Branches 109 109
=======================================
Hits 547 547
Misses 48 48
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Issue: Related to #295
What Changed
Makes sure Story-files don't end up with titles that are incompatible with Storybook.
For example
"title": "src/Accordion/Accordion/<Accordion />/should render and not be controlled"would have caused following crash:How to test
pnpm exec archive-storybookError originates from https://github.com/mui/material-ui/blob/64f0b491155616b44e41421c6cb5513f32b22391/packages/mui-material/src/Accordion/Accordion.test.js#L27 test title.