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: "🟩",
}
],
};

Type Parameters

  • Value = unknown