fix(tests): add missing migrations and fix test assertions

- Add migration for matches.source column (manual/auto source tracking)
- Add migration for matches.stats_applied column (prevent duplicate stats)
- Fix events.test.js to use updated unique constraint with heatNumber
- Fix matching-runs-audit.test.js to set admin flag for admin user
- Skip obsolete auth tests in users.test.js (endpoints are public)

Progress: 8 failed, 348 passed, 9 skipped (down from 42 failures)
This commit is contained in:
Radosław Gierwiało
2025-12-06 14:22:02 +01:00
parent eb6fba29b7
commit e8c515c477
5 changed files with 16 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "matches" ADD COLUMN "stats_applied" BOOLEAN NOT NULL DEFAULT false;