Skip to content

test: add snapshot tests for all Badge variants (Closes #866) - #974

Open
waterWang wants to merge 1 commit into
scout-off:mainfrom
waterWang:feat/badge-snapshot-866
Open

test: add snapshot tests for all Badge variants (Closes #866)#974
waterWang wants to merge 1 commit into
scout-off:mainfrom
waterWang:feat/badge-snapshot-866

Conversation

@waterWang

Copy link
Copy Markdown

Adds snapshot tests for all 7 Badge variants (level0level3, position, region, achievement).

  • Uses @testing-library/react's render and container for snapshot assertions
  • Follows the pattern used by Button, Select, and EmptyState snapshots
  • All existing tests preserved
  • npm run build ✅ passes
  • npm run test ✅ 7 snapshots written, all pass

Closes #866

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.

Add snapshot test for Badge component

1 participant