1
0
Fork 0
polaris-task-force/tests
Z8MB1E 6be14c9815 test(test-db): template database + schema-hash cache + clone primitives
Reworks the test-db module into explicit primitives: ensureTemplateDatabase
(dropped/recreated + built once per schema hash change, cached in
.cache/testdb-template.json), cloneTemplateInto, dropDatabaseIfPresent and
dropStaleWorkerDatabases. bootstrapTestDatabase() keeps its export but is
re-expressed as guarantee-template + fresh clone for the serial databases
(vitest pre-stage-2, Playwright), so repeated runs skip drizzle push
entirely. The legacy truncate+push flow survives verbatim as
bootstrapSerialDatabase for the TEST_DATABASE_URI bisect mode. Nothing may
connect to the template while clones run (loud invariant comment).
2026-10-21 10:03:33 -04:00
..
audit test(audit): support exact route filtering in the mobile audit 2026-10-13 10:38:45 -04:00
e2e test(test-db): template database + schema-hash cache + clone primitives 2026-10-21 10:03:33 -04:00
fixtures fix(minigames): end Bomperator teleport-back with trace-proven envelope correction 2026-10-18 02:11:15 -04:00
int test: isolate locker-sync and award-automation specs from cross-file db state 2026-10-21 02:14:43 -04:00
push-schema.ts test(int-suite): auto-accept drizzle push prompts in tests/push-schema.ts 2026-10-21 10:03:33 -04:00
seed-baseline.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
test-db.ts test(test-db): template database + schema-hash cache + clone primitives 2026-10-21 10:03:33 -04:00
vitest-global.ts test(test-db): template database + schema-hash cache + clone primitives 2026-10-21 10:03:33 -04:00
vitest-teardown.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00