Skip to content

good first issue: add unit tests for deriveEvents() in hooks/use-activity-feed.ts #433

Description

@Austinaminu2

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions