# Testing ## Unit Tests Unit tests are written using Jest and run with `npm run test:unit`. ## Contract Tests Contract tests ensure that the API behaves as documented in `openapi.yaml`. They are run with `npm run test:contract`. ## Integration Tests Integration tests verify the complete flow of features. They are run with `npm run test:integration`. ## Dispute Flow Tests The dispute flow is tested in `test-dispute-flow.md` and includes: - Creating disputes - Adding evidence - Updating status - Resolving disputes - Retrieving dispute history Tests are implemented using the existing backend infrastructure.