feat(deps): @faker-js/faker wide-synthetic seed for load testing
New seed harness for stress-testing list pages, search, analytics under realistic volumes. Faker-driven, deterministic via fixed seed, idempotent via `clients.source_details = 'wide-synthetic'` marker. - `src/lib/db/seed-wide-synthetic-data.ts` — generator (1000 clients default, override via `WIDE_SEED_COUNT`) - `src/lib/db/seed-wide-synthetic.ts` — entrypoint - `pnpm db:seed:wide-synthetic` script Distribution: - 70% of clients get an interest (spread across pipeline stages) - ~50% of those interests link to a real berth - Acquisition source weighted: 55% website / 25% referral / 15% broker / 5% manual - Locale-aware names/emails/phones/addresses via faker Curated synthetic seed (`seed-synthetic-data.ts`) and realistic seed (`seed-data.ts`) are untouched — this is a third axis for volume testing, not a replacement. Verified: tsc clean, build green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
"db:seed": "tsx src/lib/db/seed.ts",
|
||||
"db:seed:realistic": "tsx src/lib/db/seed.ts",
|
||||
"db:seed:synthetic": "tsx src/lib/db/seed-synthetic.ts",
|
||||
"db:seed:wide-synthetic": "tsx src/lib/db/seed-wide-synthetic.ts",
|
||||
"db:reset": "tsx scripts/db-reset.ts --confirm",
|
||||
"db:reseed:realistic": "pnpm db:reset && pnpm db:seed:realistic",
|
||||
"db:reseed:synthetic": "pnpm db:reset && pnpm db:seed:synthetic",
|
||||
@@ -117,6 +118,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@axe-core/playwright": "^4.11.3",
|
||||
"@faker-js/faker": "^10.4.0",
|
||||
"@hookform/devtools": "^4.4.0",
|
||||
"@next/bundle-analyzer": "^16.2.6",
|
||||
"@playwright/test": "^1.60.0",
|
||||
|
||||
Reference in New Issue
Block a user