Generate a repeatable fixture
Use Node.js 20.20.0+. Save this asgenerate-fixture.mjs in a new directory:
orders.fixture.json and prints the expected count and total.
It refuses to overwrite an existing file. Prices are represented as decimal strings; the
calculation uses integer cents rather than floating-point addition.
These are input fixtures, not API request bodies or persisted commerce records. Map them to
the exact binding’s schema before importing them. The orders quickstart
shows the tested customer, inventory, and order creation sequence.
Cover decisions, not just volume
Use the error-handling tests for concrete rejection
checks and agent evaluations for expected conversational behavior.
Keep a test record
Record the fixture version, environment, package version, expected results, and the IDs created by the run. Use separate databases and workspaces for tests. Synthetic data can still trigger real delivery or payment actions if connected to live tools; configure the execution boundary.Synthetic fixtures are not evidence of production representativeness or a privacy guarantee.
Review any imported source data and independently verify what connected tools can execute.