StartConvexOptions

test-convex · /start·interface

Options for . All fields are optional; omitting them starts an ephemeral local Convex backend that is torn down on stop().

Properties

dataDir?
string
When set, the backend persists its data to this directory and survives ``.stop()``.
port?
number
Fixed port. Useful with ``dataDir`` so re-attaches hit the same deployment URL.

Example

// Ephemeral — for integration tests:
const convex = await startConvex();

// Persistent — for pnpm dev:
const convex = await startConvex({ dataDir: '.convex-dev', port: 3210 });

StartedConvex resolveConvexProjectDir resolveConvexStateDir startConvex

Sourcestart.ts:35Edit the JSDoc directly
Metadata@nordcom/commerce-test-convex@0.0.0Open in GitHub ↗

On this page