Skip to content

API Reference / @gtkx/testing / prettyFormat / format

Function: format() ​

format(val, options?): string

Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.11/node_modules/@vitest/pretty-format/dist/index.d.ts:182

Returns a presentation string of your val object

Parameters ​

val ​

unknown

any potential JavaScript object

options? ​

PrettyFormatOptions

Custom settings

Returns ​

string

Released under the MPL-2.0 License.