Const
An expect on node:assert, with just the matchers the contracts use, for running them outside Vitest (under node:test, say). Failures are node:assert errors, so any runner reports them.
expect
node:assert
node:test
The value to check.
What to say when a check fails.
import { describe, it } from "node:test";import { assertExpect, describeStoreContract } from "@crowandraven/evalkeeper/testing";describeStoreContract("my store", () => myStore(), { test: { describe, it, expect: assertExpect },}); Copy
import { describe, it } from "node:test";import { assertExpect, describeStoreContract } from "@crowandraven/evalkeeper/testing";describeStoreContract("my store", () => myStore(), { test: { describe, it, expect: assertExpect },});
An
expectonnode:assert, with just the matchers the contracts use, for running them outside Vitest (undernode:test, say). Failures arenode:asserterrors, so any runner reports them.