You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add deterministic Jest unit coverage for the existing search-query parsing utility. The parser should safely distinguish ordinary search text from @username and #hashtag tokens while preserving the existing fields consumed by search callers.
Implementation approach
PR #438 preserves the existing textQuery and tokens contract and adds a keywords field rather than replacing the parser with a new incompatible return shape.
TEST-001 Jest unit coverage for
parseSearchQueryStatus
Implementation is under review in #438.
Summary
Add deterministic Jest unit coverage for the existing search-query parsing utility. The parser should safely distinguish ordinary search text from
@usernameand#hashtagtokens while preserving the existing fields consumed by search callers.Implementation approach
PR #438 preserves the existing
textQueryandtokenscontract and adds akeywordsfield rather than replacing the parser with a new incompatible return shape.Coverage
@usernamequeries#hashtagqueriesmainAcceptance criteria
textQueryandtokensconsumers remain compatible.main.Test commands
npm test -- parseSearchQuery npm run buildPlaywright may cover end-to-end search behavior separately; it is outside the unit-testing scope of this issue.
Related work