MCPcopy Create free account
hub / github.com/denoland/std / getErrorMessage

Function getErrorMessage

testing/_snapshot_utils.ts:7–9  ·  view source on GitHub ↗
(message: string, options: SnapshotOptions)

Source from the content-addressed store, hash-verified

5import { buildMessage } from "@std/internal/build-message";
6
7export function getErrorMessage(message: string, options: SnapshotOptions) {
8 return typeof options.msg === "string" ? options.msg : message;
9}
10
11/**
12 * Default serializer for `assertSnapshot`.

Callers 3

#readSnapshotFileMethod · 0.90
assertSnapshotFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected