Current Behavior
We currently have 8 separate test files for icon components under src/__testing__/:
AddIcon.test.tsx
ApplicationIcon.test.tsx
BusIcon.test.tsx
CircleIcon.test.tsx
CodeIcon.test.tsx
PeopleIcon.test.tsx
ReplyIcon.test.tsx
TableChartIcon.test.tsx
Each file follows the exact same pattern — render the icon and assert width/height. This means:
- Only 8 out of 230+ icon components have test coverage.
- Every new icon requires manually creating a new test file.
- There's a lot of duplicated boilerplate across files.
Contributor Guide
Current Behavior
We currently have 8 separate test files for icon components under
src/__testing__/:AddIcon.test.tsxApplicationIcon.test.tsxBusIcon.test.tsxCircleIcon.test.tsxCodeIcon.test.tsxPeopleIcon.test.tsxReplyIcon.test.tsxTableChartIcon.test.tsxEach file follows the exact same pattern — render the icon and assert
width/height. This means:Contributor Guide