Expect
Expect =
ExpectResult<T>
Defined in: packages/core/src/conformance/expect.ts:38
Expect<
T>(actual):ExpectResult<T>
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”actual
Section titled “actual”T
Returns
Section titled “Returns”ExpectResult<T>
Properties
Section titled “Properties”fail: (
message) =>never
Defined in: packages/core/src/conformance/expect.ts:47
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”never
poll: <
T>(fn,options?) =>object
Defined in: packages/core/src/conformance/expect.ts:40
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => T | Promise<T>
options?
Section titled “options?”interval?
Section titled “interval?”number
timeout?
Section titled “timeout?”number
Returns
Section titled “Returns”object
toBe: (
expected) =>Promise<void>
Parameters
Section titled “Parameters”expected
Section titled “expected”T
Returns
Section titled “Returns”Promise<void>
toEqual
Section titled “toEqual”toEqual: (
expected) =>Promise<void>
Parameters
Section titled “Parameters”expected
Section titled “expected”T
Returns
Section titled “Returns”Promise<void>
skip: (
reason) =>never
Defined in: packages/core/src/conformance/expect.ts:53
Mark the current case as skipped rather than passed or failed. Useful when
a case requires an optional capability (e.g., poisonTransaction) that
does not apply to the backend under test.
Parameters
Section titled “Parameters”reason
Section titled “reason”string
Returns
Section titled “Returns”never