function assertSnapshotimport { assertSnapshot } from "https://dotland.deno.dev/std@0.181.0/testing/snapshot.ts"; assertSnapshot<T>(context: Deno.TestContext,actual: T,options: SnapshotOptions<T>,): Promise<void>Make an assertion that actual matches a snapshot. If the snapshot and actual do not a match, then throw. assertSnapshot<T>(context: Deno.TestContext,actual: T,message?: string,): Promise<void>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. ExamplesExample 1 import { assertSnapshot } from "https://deno.land/std@0.181.0/testing/snapshot.ts"; Deno.test("snapshot", async (test) => { await assertSnapshot<number>(test, 2); }); Type ParametersTParameterscontext: Deno.TestContextactual: Toptions: SnapshotOptions<T>ReturnsPromise<void>Type ParametersTParameterscontext: Deno.TestContextactual: Toptionalmessage: stringReturnsPromise<void>