Skip to content

Component tests with React Testing Library #12

Description

@iexwr

Context

The frontend has no tests; PRs can regress behavior unnoticed.

Acceptance criteria

  • Add RTL tests for Navbar (connect button), Create (validation + submit), and Request (Open/Paid).
  • Mock lib/stellar.ts and the API client.
  • npm run test includes them; runs in CI.

Technical notes

  • Use vitest + @testing-library/react (add as devDependency).

Testing

  • New *.test.tsx files; aim for meaningful assertions, not snapshot-only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveStellar Wave for StackPayenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions