UNPKG

@lou.codes/test

Version:

✅ Equality test with enforced readability

23 lines (22 loc) 487 B
import type { IsomorphicIterable } from "@lou.codes/types"; import type { Test } from "./Test.js"; /** * Iterable of `Test`. * * @category Test * @example * ```typescript * const tests: Tests<number> = [ * { * given: "a number", * must: "make it double", * received: () => double(2), * wanted: () => 4, * } * ]; * ``` * @see {@link Test} * * @template Value Type of value being tested. */ export type Tests<Value = unknown> = IsomorphicIterable<Test<Value>>;