Dependencies are already installed. No extra steps needed.
cd frontend
npm testsrc/components/CreateCampaignForm.test.tsx— tests for campaign creation flowsrc/components/CampaignDetailPanel.test.tsx— tests for pledge, claim, and refund flows
- All form fields render correctly
- API errors display properly
- Success messages display properly
- Form resets after submission
- Pledge submission calls the correct handler
- Empty state renders when no campaign is selected
- Tests use Vitest + React Testing Library
- jsdom is used as the browser environment
ECONNREFUSEDwarnings during tests are expected — the backend is not running during testing and do not affect results