tests cleanup

This commit is contained in:
2026-01-03 18:46:36 +01:00
parent 540c0fcb7a
commit c589b3c3fe
17 changed files with 402 additions and 2812 deletions

View File

@@ -78,41 +78,6 @@ services:
retries: 30
start_period: 10s
# Website server for integration tests
website:
image: node:20-alpine
working_dir: /app/apps/website
environment:
- NODE_ENV=test
- NEXT_TELEMETRY_DISABLED=1
- API_BASE_URL=http://api:3000
ports:
- "3100:3000"
volumes:
- ./:/app
- /Users/marcmintel/Projects/gridpilot/node_modules:/app/node_modules:ro
command: ["sh", "-lc", "echo '[website] Waiting for API...'; npm run dev --workspace=@gridpilot/website"]
depends_on:
ready:
condition: service_completed_successfully
api:
condition: service_healthy
networks:
- gridpilot-test-network
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://localhost:3000').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 5s
timeout: 10s
retries: 15
start_period: 30s
networks:
gridpilot-test-network:
driver: bridge