Skip to content

test(web): React component tests (I-007)#17

Merged
PresenceWith merged 1 commit intodevelopfrom
feat/i-007-react-tests
Apr 4, 2026
Merged

test(web): React component tests (I-007)#17
PresenceWith merged 1 commit intodevelopfrom
feat/i-007-react-tests

Conversation

@PresenceWith
Copy link
Copy Markdown
Owner

Summary

  • Extract computeElementDiff() from file-board.tsx into board-utils.ts as a pure function
  • Add 26 test cases across 3 new test files:
    • board-utils.test.ts (12) — remove/set/insert diff ops, edge cases
    • tab-utils.test.ts (6) — computeLabels() basename disambiguation
    • tab-bar.test.tsx (8) — RTL rendering: tabs, active state, close, dropdown
  • 140 total tests pass (26 new + 114 existing)

Resolves I-007.

Test plan

  • npx vitest run — 140/140 pass
  • No new TypeScript errors in changed files
  • file-board.tsx refactored to use extracted computeElementDiff() — behavior unchanged

🤖 Generated with Claude Code

…els, TabBar (I-007)

Extract computeElementDiff() pure function from file-board.tsx into board-utils.ts
and add 26 test cases across 3 files: board-utils (12), tab-utils (6), tab-bar RTL (8).
140 total tests pass.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PresenceWith PresenceWith merged commit 61fa11f into develop Apr 4, 2026
1 check passed
@PresenceWith PresenceWith deleted the feat/i-007-react-tests branch April 4, 2026 17:36
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.

1 participant