Packages narrative
packages / test-convex
test-convex
Functions
| Name | Description |
|---|---|
runCli | Dispatches a |
runDaemon | Long-running foreground process: spins up a Convex backend via |
seedCanonical | Live-backend transport wrapper around the canonical seed — the entry the HARNESS-02 CLI's |
seedClerkOperatorLive | Provisions the e2e Clerk operator's identity model onto a RUNNING deployment by calling the deployed |
seedCms | Live-backend transport wrapper around |
seedShop | Live-backend transport wrapper around |
resolveConvexProjectDir | Resolves the Convex project directory (the one holding |
resolveConvexStateDir | Resolves the project-local Convex state directory ( |
startConvex | Starts a local Convex backend via the bundled |
createUnitConvex | Builds the |
unitModuleMap | Builds the |
Interfaces
| Name | Description |
|---|---|
DaemonOptions | Configuration for the persistent |
SeedClerkOperatorOptions | Inputs for |
SeedCmsOptions | Options for the over-the-wire |
StartConvexOptions | Options for |
StartedConvex | Handle returned by |
Types
| Name | Description |
|---|---|
SeedCanonicalOptions | Customization knobs for the canonical seed. Identical to the shop seed's options — the CMS phase has no knobs of its own (its documents key off the shop id the shop phase resolves), so the orchestrator forwards these to |
SeedClerkOperatorView | The narrow seam result the harness consumes (the wire erases the branded Convex ids). |
SeedShopOptions | Customization knobs for the shop seed. All fields are optional — defaults produce the canonical |
UnitConvexHarness | In-memory Convex test harness produced by |
UnitModuleMap | Module loader map handed to |
Variables
| Name | Description |
|---|---|
DEFAULT_SHOP_LEGACY_ID | The canonical demo shop's preserved Mongo |
Other
| Name | Description |
|---|---|
DaemonOptions | — |
runDaemon | — |
startConvex | — |
StartConvexOptions | — |
StartedConvex | — |
verifyShopifyHmac
Verifies a Shopify webhook HMAC signature using a constanttime byte comparison to guard against timing attacks.
createUnitConvex
Builds the convextest harness for the fast, hermetic unit tier: a fully inmemory backend that never spawns a real deployment or touches the network. The convext