function dumpYaml
dumpYaml(unnamed 0: { name: string; actual: unknown; expected: unknown; message: string | null; stack: string | null; at: string | null; }): string

Serializes the fixed TAP assertion object to a YAML string. Uses a template literal (no Object.entries overhead) for the known top-level keys.

Parameters

unnamed 0: { name: string; actual: unknown; expected: unknown; message: string | null; stack: string | null; at: string | null; }

Return Type

string

Usage

import dumpYaml from "lib/tap/dump-yaml.ts";