Skip to content

chore(testing): Consolidate individual icon tests into a single auto-discovery test #1529

@rishiraj38

Description

@rishiraj38

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:

  1. Only 8 out of 230+ icon components have test coverage.
  2. Every new icon requires manually creating a new test file.
  3. There's a lot of duplicated boilerplate across files.

Contributor Guide

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions