MockShopifyTransportOpts
●cart · /shopify/testing·interface
Options for . failOn lets test authors inject
transport-level failures on specific Shopify mutation operations so the
adapter's error-handling paths can be exercised without a live endpoint.
Properties
PROPTYPEDESCRIPTION
failOn?
Example
const transport = mockShopifyTransport({
failOn: (op) => op === 'cartLinesAdd' ? new Error('network error') : null,
});Related
MetadataOpen in GitHub ↗