import { assertSnapshot } from "https://deno.land/x/frugal@0.3.0/dep/std/snapshot.ts";
Make an assertion that actual
matches a snapshot. If the snapshot and actual
do
not a match, then throw.
Type parameter can be specified to ensure values under comparison have the same type. For example:
import { assertSnapshot } from "./snapshot.ts";
Deno.test("snapshot", async (test) => {
await assertSnapshot<number>(test, 2);
});