Testing

Unit tests use Jest. From backend, run npm test for the unit config. The gateway has its own Jest tests.

End-to-end tests use Playwright from frontend. The suite that refreshes the product-tour screenshots is Chromium:

cd frontend
BACKEND_URL=http://127.0.0.1:5001 npx playwright test tests/e2e --project=chromium --workers=1

The API on port 5001 and the portal on port 3000 need to be up. Keycloak needs to answer on port 8443.

Source and the full guides are in the repository.