Skip to content

[FE-39] Write unit tests for shared UI components #405

@mftee

Description

@mftee

Overview

Write unit tests for the shared UI components built inside frontend/cmmty/components/ using React Testing Library and Jest.

Acceptance Criteria

  • Write tests for: Button, Input, Modal, Toast, Badge, Skeleton
  • Each component must have at least 3 test cases
  • Tests cover: renders correctly, handles user interaction, shows correct state (loading/error/disabled)
  • Achieve at least 80% line coverage across the tested components
  • All tests must pass with npm test from the frontend root

Contribution Folder

All files must be placed inside frontend/cmmty/. Do not modify any file outside this folder.

How to Contribute

Comment on this issue to express interest, fork the repo, build inside frontend/cmmty/ only, and open a PR targeting main.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions