Testing

This page is the quick reference for running tests locally and understanding what CI runs.

Frontend (client)

From client/:

npm test

Lint:

npm run lint

Notes:

  • Jest picks up:
    • **/*.test.js
    • **/*.steps.js (BDD-style step tests via jest-cucumber)

Backend (Docker Compose profiles)

From backend/:

make help

Common component test targets:

  • make user-tests
  • make restaurant-tests
  • make partner-dashboard-tests
  • make websocket-tests

Test style

Backend component tests follow BDD with Gherkin .feature files and Behave steps.

See:

  • local_tests/test_style.md

CI quick map

  • Frontend tests: .github/workflows/frontend-tests.yml
  • JS lint + build: .github/workflows/eslint_workflow.yml