Lucas Berger
9f20c8b7cc
test(12-04): RED regression for setup /config payload contract + error rendering
- Add setupClient.contract.test.ts with 9 tests targeting two bugs:
BUG 1: SetupConfigPayload interface must use camelCase keys matching
the API configSchema (appExternalUrl, oidcIssuer, oidcClientId,
vapidPublicKey) — TypeScript compile error confirms mismatch
BUG 2: postSetupConfig must throw readable string when API returns
ZodError object in error field (not [object Object])
- Tests 7-8 fail (BUG 2 confirmed); TypeScript errors confirm BUG 1