fix(ci): use --ci for backend (Jest), keep --run for frontend (Vitest)
Build & Push Docker Images / test-backend (push) Successful in 20s
Build & Push Docker Images / test-frontend (push) Successful in 21s
Build & Push Docker Images / build-frontend (push) Successful in 27s
Build & Push Docker Images / build-backend (push) Successful in 18s

Backend uses Jest, not Vitest — --run is unrecognized. --ci is the
Jest equivalent that disables watch mode and exits cleanly. Frontend
already uses --run --reporter=basic (Vitest) which is correct.

Verified locally: backend `npm test -- --ci` → 17/17 passing.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ichitux
2026-06-28 13:09:25 +02:00
parent 55a5d93a91
commit 2f9c0d27df
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: cd backend && npm ci run: cd backend && npm ci
- name: Run tests - name: Run tests
run: cd backend && npm test -- --run --reporter=basic run: cd backend && npm test -- --ci
test-frontend: test-frontend:
runs-on: ubuntu-latest runs-on: ubuntu-latest