Entity / foldkit-entity/conformance

ConformanceCase

interface · packages/entity/src/conformance/index.ts:82

interface ConformanceCase {
  readonly what: string
  readonly body: AnyQuery
  readonly input: Readonly<Record<string, unknown>>
  readonly expected: ReadonlyArray<string>
}

Members

ConformanceCase.what

property · packages/entity/src/conformance/index.ts:84

readonly what: string

What the case pins, as a sentence an interpreter fails by name.

ConformanceCase.body

property · packages/entity/src/conformance/index.ts:85

readonly body: AnyQuery

ConformanceCase.input

property · packages/entity/src/conformance/index.ts:92

readonly input: Readonly<Record<string, unknown>>

The inputs, encoded — the space a store's rows are in, not the domain space the body's types describe. For every column but at the two are the same value, which is exactly why this has to be said rather than inferred from the fixtures.

ConformanceCase.expected

property · packages/entity/src/conformance/index.ts:94

readonly expected: ReadonlyArray<string>

The ids the body matches, in the order it asks for.