Join our community: https://t.me/+DOylgFv1jyJlNzM0
Description
The frontend has no automated tests. The CI pipeline builds the app but never runs tests. Vitest is already available in the ecosystem — adding component tests would catch regressions early.
Test Cases Needed
StreamCreationForm — validation errors shown for invalid inputs
StreamCard — renders correct sender/recipient/amount/rate
useStreamEvents hook — connects to SSE, updates on events, reconnects on disconnect
amount.ts utilities — conversion and formatting functions
- Wallet context — connect/disconnect state transitions
Files
frontend/src/__tests__/ (create)
frontend/vitest.config.ts
Acceptance Criteria
Description
The frontend has no automated tests. The CI pipeline builds the app but never runs tests. Vitest is already available in the ecosystem — adding component tests would catch regressions early.
Test Cases Needed
StreamCreationForm— validation errors shown for invalid inputsStreamCard— renders correct sender/recipient/amount/rateuseStreamEventshook — connects to SSE, updates on events, reconnects on disconnectamount.tsutilities — conversion and formatting functionsFiles
frontend/src/__tests__/(create)frontend/vitest.config.tsAcceptance Criteria
npm testin frontend