Goal
Write comprehensive unit and integration test cases for the Card component (src/components/ui/Card/Card.tsx).
Scope
- Review the
Card component and its props (CardProps in CardProps.ts).
- Write tests covering:
- Rendering of title, body, and button label via props.
- Proper display of all DOM elements (title, body, button).
- Any edge cases (e.g., empty or missing props).
- Interaction with the Button (if applicable).
Background
Requirements
- Use the project’s configured testing framework (e.g., Jest, React Testing Library).
- Include positive/negative test cases where applicable.
- Ensure all tests are easily maintainable and readable.
- Document each test briefly.
Assignee
@KARUNANS2004
Please ask in this issue if you need any clarifications!