seedCanonical

test-convex · /index·async functionthrows See

Live-backend transport wrapper around the canonical seed — the entry the HARNESS-02 CLI's seed subcommand and the e2e global-setups (HARNESS-07/08) dispatch to. A registered seed mutation does not exist on the deployment (fixtures must not ship in the production bundle), so the live runner (seed/live.ts) re-expresses over the wire: the deployed server-tier seam for the shop phase, schema-validated CLI imports for the CMS phase, both behind the same byDomain idempotency key.

Requires CONVEX_SERVER_SECRET (the deployment's server-tier secret) plus, for a FRESH deployment only, a CLI credential (CONVEX_SELF_HOSTED_ADMIN_KEY or CONVEX_DEPLOY_KEY).

Signature

@nordcom/commerce-test-convex
function seedCanonical(url: string, opts: CanonicalShopFixtureOptions): Promise<string>;

Parameters

NameTypeDescription
urlstring
optsCanonicalShopFixtureOptions

Returns

The canonical shop id as a plain string (the wire boundary erases the branded Id<'shops'>).

Throws

See
seed/live.ts's seedCanonicalLive.

runCli DaemonOptions runDaemon SeedClerkOperatorOptions SeedCmsOptions SeedCanonicalOptions SeedClerkOperatorView SeedShopOptions

Metadata@nordcom/commerce-test-convex@0.0.0Open in GitHub ↗

On this page