Packages narrative
packages / cart / core/mock-adapter
cart / core/mock-adapter
Functions
| Name | Description |
|---|---|
createMockCartAdapter | Builds an in-memory cart adapter for host tests and contract self-tests. State lives in a |
Interfaces
| Name | Description |
|---|---|
CreateMockCartAdapterOpts | Options for |
runCartAdapterContract
Vitestbound contract suite that every implementation must pass. Hosts call this once per adapter at import time inside a .test.ts file; the suite registers desc
CreateMockCartAdapterOpts
Options for . All fields are optional; omitting them yields an everythingenabled adapter with zero latency and no injected failures.