Skip to content

test(components): add unit tests for CampItem #126 - #172

Merged
GiZano merged 1 commit into
ClimbStack:mainfrom
Gheb6:feat/issue-126-camp-item-tests
Oct 14, 2026
Merged

GiZano merged 1 commit into
ClimbStack:mainfrom
Gheb6:feat/issue-126-camp-item-tests

Conversation

@Gheb6

@Gheb6 Gheb6 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

This pull request description was written by an AI agent.

Summary

Adds comprehensive unit and component tests for CampItem (src/components/CampItem.tsx) achieving 100% line, branch, and statement coverage.

  • Verifies rendering of camp name with single-line limit and layout styling.
  • Tests incomplete state: transparent background, tertiary border, no checkmark, normal text color.
  • Tests completed state: success colors on checkbox, checkmark text, tertiary text color, and strikethrough styling.
  • Tests conditional edit action (onEdit) and delete action with vector icons (pencil-outline and trash-can-outline).
  • Tests user interactions: press events on checkbox (onToggle), edit button (onEdit), and delete button (onDelete).
  • Tests light and dark theme styling.

Closes #126

AI Generation Disclosure

  • Tool / Agent: Antigravity with Gemini 3.8 Flash
  • Files generated:
    • src/components/__tests__/CampItem.test.tsx (all lines)

…rated)

Add comprehensive unit and component tests for CampItem covering rendering, incomplete vs completed states, checkmark, strikethrough, edit and delete actions, user interactions, and theming.

Resolves ClimbStack#126
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@GiZano
GiZano merged commit af30caa into ClimbStack:main Oct 14, 2026
4 checks passed
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.

[FEAT] Add tests for src/components/CampItem.tsx

2 participants