with some tests

This commit is contained in:
counterweight 2025-12-18 21:48:41 +01:00
parent a764c92a0b
commit 0995e1cc77
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
18 changed files with 3020 additions and 16 deletions

31
scripts/e2e.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash
set -e
cd "$(dirname "$0")/.."
# Kill any existing backend
pkill -f "uvicorn main:app" 2>/dev/null || true
sleep 1
# Start db
docker compose up -d db
# Start backend
cd backend
uv run uvicorn main:app --port 8000 &
PID=$!
cd ..
# Wait for backend
sleep 2
# Run tests
cd frontend
npm run test:e2e
EXIT_CODE=$?
# Cleanup
kill $PID 2>/dev/null || true
exit $EXIT_CODE