Skip to content

Commit d5bfc33

Browse files
authored
Merge pull request #254 from Debbys-design/feat/api-e2e-supertest-testcontainers
feat: add API E2E suite with Supertest + Testcontainers
2 parents a55f176 + 62ef597 commit d5bfc33

8 files changed

Lines changed: 1712 additions & 92 deletions

File tree

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,28 @@ When adding new interactive components:
8383

8484
# Contributing
8585

86+
## Local prerequisites
87+
88+
### API E2E tests
89+
90+
The API E2E suite spins up real Postgres and Redis containers via [Testcontainers](https://testcontainers.com/). You need:
91+
92+
- **Docker Desktop** (or any Docker-compatible daemon) running locally.
93+
- Node 20+.
94+
95+
No `.env` file is needed — the global setup injects all ephemeral credentials at runtime.
96+
97+
```bash
98+
cd backend
99+
npm ci
100+
npx prisma generate
101+
npm run test:e2e
102+
```
103+
104+
The first run pulls `postgres:16-alpine` and `redis:7-alpine` (~100 MB total). Subsequent runs use the local Docker cache and start in seconds.
105+
106+
> **Tip:** If a test hangs, check that Docker is running: `docker info`.
107+
86108
## Soroban ABI golden vectors
87109

88110
The file `backend/src/soroban/golden-vectors.json` records the exact ScVal

0 commit comments

Comments
 (0)