Testing
Run unit and integration tests across the monorepo with Nx.
Run tests (all)
bash
pnpm nx run-many -t testRun tests (single package)
bash
# Backend (NestJS)
pnpm nx test web-backend
# Microservice
yarn nx test microservice-job-broker
# Frontend
yarn nx test frontend-web-editorPass extra Jest flags after --:
bash
pnpm nx test web-backend -- --test-timeout=60000 --runInBandLinting
bash
pnpm nx run-many -t lintDebian 12 (OpenSSL 3) and mongodb-memory-server
On Debian 12/bookworm (including the Dev Container), mongodb-memory-server may not run due to OpenSSL 1.1 binaries. Our Jest setups detect this and prefer a real MongoDB via MONGO_URI when available.
Set MONGO_URI explicitly if needed:
bash
export MONGO_URI="mongodb://127.0.0.1:27017/test"
pnpm nx test web-backend -- --test-timeout=60000See also the project README for details and per-package READMEs for any test-specific notes.
