feat(07-02): implement globalSetup — /health readiness gate + deterministic DB seed

- Poll baseURL/health with 60s timeout; throw on expiry (D-08 readiness gate)
- TRUNCATE list_items, list_shares, lists, calendar_events (FK checks toggled)
- INSERT IGNORE calendars guard for id=10 (Pitfall 4 CI resilience)
- Seed one timed calendar_event on calendar_id=10 (uid: e2e-seed-event-001)
- Seed E2E Grocery List (owner_id=1, is_shared=true) + list_shares + Milk/Eggs items
- Add mysql2@3.22.4 devDependency to apps/pwa (needed for global-setup types)
- No @playwright/test imports — plain Node.js only (Pitfall 2)
This commit is contained in:
Lucas Berger
2026-06-11 01:50:10 -04:00
parent e7fdf798dd
commit 53498e3408
3 changed files with 113 additions and 6 deletions
+1
View File
@@ -35,6 +35,7 @@
},
"devDependencies": {
"@playwright/test": "1.60.0",
"mysql2": "3.22.4",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/node": "^22.19.19",