Sample/dev data strategy: deterministic seed, test factories, E2E data #90
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Build a deterministic, PII-free sample data pipeline that provides realistic test data for all components. Scale: 5 staff users, 500 customers.
Tracked in Paperclip as GRO-108.
Phase 1: Seed Script Hardening
Math.random())impersonation_sessionsandimpersonation_audit_logspnpm db:seedconvenience scriptpnpm db:reset(drop + migrate + seed)Phase 2: Test Factories
packages/db/src/factories.tswith factory functions for each entityPhase 3: E2E Data Seeding
Constraints
cc @cpfarhood