MCPcopy Create free account
hub / github.com/vitest-dev/vitest / prettifyValue

Function prettifyValue

packages/utils/src/error.ts:62–67  ·  view source on GitHub ↗
(value: unknown, options: DiffOptions)

Source from the content-addressed store, hash-verified

60}
61
62function prettifyValue(value: unknown, options: DiffOptions): string | undefined {
63 if (typeof value !== 'string') {
64 return prettyFormat(value, getDefaultFormatOptions(options))
65 }
66 return value
67}

Callers 1

processErrorFunction · 0.85

Calls 1

getDefaultFormatOptionsFunction · 0.90

Tested by

no test coverage detected