Parent
#64
What to build
Extend the integration-test harness (#280) with fixture factories so tests can create scoped data without hand-writing inserts and cleanup, and stay safe under parallel test workers.
- Factory functions (e.g. create-artist, create-set, create-user) that insert via the real Supabase client, return the created row's id, and self-register with the harness's shared cleanup hook so nothing needs to be manually deleted.
- Every factory generates a uniquely-named/scoped row (no two tests ever touch the same row), rather than relying on shared mutable seed data.
- A pool of disposable "scratch" rows for common simple cases, so not every test needs to build a full dependency graph from scratch.
- Proven by an integration test for a hook that reads data the test itself creates (e.g. a hook scoped to an edition/artist/set), demonstrating that running it repeatedly or in parallel produces no collisions and leaves no residue.
Acceptance criteria
Blocked by
Parent
#64
What to build
Extend the integration-test harness (#280) with fixture factories so tests can create scoped data without hand-writing inserts and cleanup, and stay safe under parallel test workers.
Acceptance criteria
Blocked by