Description
`deriveEvents()` in `hooks/use-activity-feed.ts:26` turns a list of streams into created/withdrawal/cancelled/completed activity events with role/description text, but has zero test coverage.
Location
`hooks/use-activity-feed.ts:26`
Task
Add tests covering each event type derivation (created, withdrawal, cancelled, completed) and confirm the role (sent/received) and description text are correct for each.
Good for newcomers because
Pure transformation function with clear input (stream array) and output (event array) shapes to verify.
Description
`deriveEvents()` in `hooks/use-activity-feed.ts:26` turns a list of streams into created/withdrawal/cancelled/completed activity events with role/description text, but has zero test coverage.
Location
`hooks/use-activity-feed.ts:26`
Task
Add tests covering each event type derivation (created, withdrawal, cancelled, completed) and confirm the role (sent/received) and description text are correct for each.
Good for newcomers because
Pure transformation function with clear input (stream array) and output (event array) shapes to verify.