RunCartAdapterContractOpts

cart · /core/contract-tests·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

factory
() => CartAdapter<{}> | Promise<CartAdapter<{}>>
name
string

Example

runCartAdapterContract({
  name: 'mock',
  factory: () => createMockCartAdapter(),
});

runCartAdapterContract

On this page