Skip to content

Add Vitest setup and 3 basic unit tests for payment flow #1

@iarturo

Description

@iarturo

The frontend currently has zero tests. This issue is about setting
up Vitest and writing 3 basic unit tests for the payment flow.

Tasks:

  • Install Vitest and @testing-library/react
  • Write test for successful order creation
  • Write test for failed payment (insufficient balance)
  • Write test for wallet connection state

Acceptance criteria:

  • npm test runs and passes
  • Tests live in web/src/__tests__/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions