Skip to main content

Testing

SPN has comprehensive test suites for both backend and frontend.

Backend Tests

Uses pytest with async support.

Setup

Run Tests

With Coverage

Frontend Tests

Uses Vitest with React Testing Library.

Run Tests

Test Structure

Backend

Frontend

Mocking

External services are mocked in tests:
  • Sanity CMS
  • AWS S3
  • Email service
  • WhatsApp API

CI/CD

Tests run automatically on GitHub Actions. See .github/workflows/deploy.yml.