This repository was archived by the owner on Feb 1, 2026. It is now read-only.
test(frontend): create shared badge test factory (Phase 3.2)#375
Merged
Conversation
gander
force-pushed
the
test/badge-test-factory-phase3.2
branch
from
February 1, 2026 12:45
5b2ded1 to
b37e880
Compare
- Add badge-test-factory.ts with createBadgeTestSuite function - Generic factory for testing badge components with standard behavior - Supports custom prop names and multiple statuses - Add comprehensive tests for factory utility - Tests verify factory works correctly before badge components exist - Uses proper TypeScript types (Component instead of any) - 501 tests passing on Node 22 and 24 Phase 3.2 of Test Suite Quality Improvements complete Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
gander
force-pushed
the
test/badge-test-factory-phase3.2
branch
from
February 1, 2026 14:18
b37e880 to
4314c13
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 3.2 of Test Suite Quality Improvements - Create shared badge test factory utility to eliminate redundant badge component test patterns.
Changes
New Files:
packages/frontend/tests/utils/badge-test-factory.ts- Shared test utility for badge componentscreateBadgeTestSuite<T>functionComponentinstead ofany)packages/frontend/tests/utils/badge-test-factory.test.ts- Tests for factory utilityBenefits
Future Usage
Once badge components exist in the frontend, this factory will be used to refactor:
Test Results
anytypes used (proper TypeScript types throughout)Related
.claude-config/plans/cuddly-soaring-origami.md🤖 Generated with Claude Code