seedClerkOperatorLive

test-convex · /index·async functionthrows When

Provisions the e2e Clerk operator's identity model onto a RUNNING deployment by calling the deployed db/clerk_seed:seedClerkOperator server-tier mutation — the Clerk-org analog of for the auth graph. Must run AFTER the canonical shop seed (the org attaches to the shop resolved by shopLegacyId).

Idempotent end-to-end: the underlying mutation upserts the user/org/membership and re-projects the collaborator rows, so a re-run patches in place and never duplicates — safe to call on every e2e boot against the shared deployment.

Signature

@nordcom/commerce-test-convex

Parameters

NameTypeDescription
urlstring
optsSeedClerkOperatorOptions

Returns

The seeded operator's users id, the org id, and the shop id, as plain strings.

Throws

Error
When CONVEX_SERVER_SECRET is unset, or the mutation rejects (e.g. the shop is missing — run the canonical seed first).

runCli DaemonOptions runDaemon SeedClerkOperatorOptions SeedCmsOptions SeedCanonicalOptions SeedClerkOperatorView SeedShopOptions

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

On this page