Type alias TestResult<Value>

TestResult<Value>: Pick<Test, "given" | "must"> & {
    differences?: Differences<Value>;
}

Object that describes a test result (given, must and differences).

Example

const testResult: TestResult<string> = {
given: "🟢",
must: "🟩",
differences: [
{
kind: "E",
path: ["🟢", "🟩"],
lhs: "🟢",
rhs: "🟩",
}
],
};

See

Type Parameters

  • Value = unknown

    Type of value being tested.