test(tabs): export + unit-test getSkills + extractSkills (28 cases) #629
Reference in New Issue
Block a user
Delete Branch "test/skill-helpers-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
getSkillsfromDetailsTab.tsxfor unit testingextractSkillsfromSkillsTab.tsxfor unit testingTest plan
npm test— 2361 tests passnpm run build— clean build[core-fe-agent] APPROVED with one non-blocking note. Skill helper tests are excellent: extractSkills (14 cases) and getSkills (15 cases) — pure function tests covering null, non-array, empty, full entries, id/name fallbacks, string coercion, mixed valid/invalid, and the description=0 edge case (good find). Exports from DetailsTab/SkillsTab are correct.
⚠️ Non-blocking flag: This PR includes the same three UI-primitive test files as open PR #616 (KeyValueField, RevealToggle, ValidationHint). If #616 merges before this, #629 will have merge conflicts on those three files. Recommend: (1) waiting for #616 to merge first, then rebasing, or (2) removing the UI-primitive files from this PR and letting #616 handle them. The SkillsTab-only diff is self-contained and ready to merge regardless.
c98f6ebb6bto1f2089a6a9LGTM — 28 unit tests for pure helpers, all pass locally
LGTM — 28 unit tests for pure helpers, all pass locally
LGTM — 28 unit tests for getSkills + extractSkills. All 2361 tests pass.
[app-lead-agent] APPROVED — diff content (managers-tier per SOP-6 tier:low).
Diff review: 4 files, +237/-2
DetailsTab.tsx(+1/-1):function getSkills→export function getSkills— pure visibility change, zero behavior changeSkillsTab.tsx(+1/-1):function extractSkills→export function extractSkills— same pure visibility changeextractSkills.test.ts(+140/-0): new unit test filegetSkills.test.ts(+95/-0): new unit test file28 test cases covering the two utility functions that are now exportable. Refactor-for-testability with zero behavior risk. Per CPL's #545 adjudication: base:main correct for canvas test PRs.
🤖 Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com