UI kit reference
zidane-ui/ channels/ testing/ contract
import { … } from 'zidane-ui/channels/testing/contract'ui/src/channels/testing/contract.ts
Functions#
describeChannelsHostContractFunction#
Declares the contract's cases.
function describeChannelsHostContract(
name: string,
harness: ChannelsHarness,
capabilities: readonly ChannelsHostCapability[],
): voidParameters
| Name | Type | Description |
|---|---|---|
| name | string | The implementation's name, for the suite's title. |
| harness | ChannelsHarness | Builds the implementation over a backend. |
| capabilities | readonly ChannelsHostCapability[] | The members it offers. |
Constants#
CHANNELS_HOST_CAPABILITIESConstant#
Every capability, for an implementation that offers them all.
const CHANNELS_HOST_CAPABILITIES: readonly ChannelsHostCapability[]Types#
ChannelsHarnessType#
Builds the implementation over the contract's backend.
type ChannelsHarness = (methods: FixtureChannelsMethods) => { host: ChannelsHost } | Promise<{ host: ChannelsHost }>ChannelsHostCapabilityType#
A member of ChannelsHost an implementation may offer.
type ChannelsHostCapability =
| 'connections'
| 'connections.create'
| 'connections.update'
| 'connections.remove'
| 'connections.slack'
| 'connections.github'
| 'bindings'
| 'bindings.put'
| 'bindings.remove'
| 'bindings.enable'
| 'bindings.conversations'
| 'readiness'
| 'readiness.runFix'
| 'testAs'
| 'defaultProject'
| 'alerts'
| 'alerts.runFix'
| 'agent'
| 'agent.set'