RunCartAdapterContractOpts
●cart · /core·interface
Options accepted by . Passed once per adapter under test; the suite name and factory are the only inputs the contract runner needs from the host test file.
Properties
PROPTYPEDESCRIPTION
factory
name
string
Example
runCartAdapterContract({
name: 'mock',
factory: () => createMockCartAdapter(),
});Related
runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter CartEventBus
MetadataOpen in GitHub ↗
retry
Builtin middleware that retries transport / provider failures with linear backoff. Errors matched by name to CartUserError, CartNotFoundError, and CartCapabilit
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