-
Notifications
You must be signed in to change notification settings - Fork 0
Replace placeholder Jest test with baseline utility coverage #10
Copy link
Copy link
Open
Labels
area: inputInput and TextInput behaviorInput and TextInput behaviorarea: multiselectMultiple selection and tag behaviorMultiple selection and tag behaviorarea: searchSearch and autocomplete behaviorSearch and autocomplete behaviorarea: testsAutomated test coverage and test configurationAutomated test coverage and test configurationenhancementNew feature or requestNew feature or requestpriority: criticalMust fix before the next releaseMust fix before the next releasetype: testingTest infrastructure and coverage workTest infrastructure and coverage work
Milestone
Description
Metadata
Metadata
Assignees
Labels
area: inputInput and TextInput behaviorInput and TextInput behaviorarea: multiselectMultiple selection and tag behaviorMultiple selection and tag behaviorarea: searchSearch and autocomplete behaviorSearch and autocomplete behaviorarea: testsAutomated test coverage and test configurationAutomated test coverage and test configurationenhancementNew feature or requestNew feature or requestpriority: criticalMust fix before the next releaseMust fix before the next releasetype: testingTest infrastructure and coverage workTest infrastructure and coverage work
Problem
The test suite exists but currently has no implemented coverage. The only test is a placeholder, so
yarn testcan pass without exercising the library behavior.Start with pure utility and hook-adjacent logic because these tests are fast, deterministic, and do not require a rendered React Native environment.
Impact
Baseline unit coverage gives bug-fix PRs an immediate regression signal before component-level tests are expanded.
Code references
src/__tests__/index.test.tsx#L1: placeholder test should be replaced or removed once real tests exist.src/common/composePartialTextNode.tsx#L3-L25: match-tag rendering and tag stripping helpers.src/components/Input/utils.ts#L5-L30: input value normalization and tag composition helpers.src/components/Select/utils.ts#L5-L31: multi-value selection helpers.src/hooks/useSearch.ts#L13-L59: search result mapping and match highlighting behavior.Acceptance criteria
removeTags,composeValue,composeTags,removeItemFromMultipleValue, andisItemSelected.