API Reference / @gtkx/testing / prettyFormat / PrettyFormatOptions
Interface: PrettyFormatOptions
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:48
Properties
callToJSON?
optionalcallToJSON?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:54
Call toJSON on objects before formatting them. Ignored after the formatter has already called toJSON once for a value.
Default
truecompareKeys?
optionalcompareKeys?:CompareKeys
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:116
Compare function used when sorting object keys. Set to null to disable sorting.
escapeRegex?
optionalescapeRegex?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:59
Whether to escape special characters in regular expressions.
Default
falseescapeString?
optionalescapeString?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:64
Whether to escape special characters in strings.
Default
truehighlight?
optionalhighlight?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:69
Whether to highlight syntax using terminal colors.
Default
falseindent?
optionalindent?:number
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:74
Number of spaces to use for each level of indentation.
Default
2maxDepth?
optionalmaxDepth?:number
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:79
Maximum depth to recurse into nested values.
Default
InfinitymaxOutputLength?
optionalmaxOutputLength?:number
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:92
Approximate per-depth-level budget for output length. When the accumulated output at any single depth level exceeds this value, further nesting is collapsed. This is a heuristic safety valve, not a hard limit — total output can reach up to roughly maxDepth × maxOutputLength.
Default
1_000_000maxWidth?
optionalmaxWidth?:number
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:84
Maximum number of items to print in arrays, sets, maps, and similar collections.
Default
Infinitymin?
optionalmin?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:97
Whether to minimize added whitespace, including indentation and line breaks.
Default
falseplugins?
optionalplugins?:Plugins
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:121
Plugins used to serialize application-specific data types.
Default
[]printBasicPrototype?
optionalprintBasicPrototype?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:102
Whether to print Object / Array prefixes for plain objects and arrays.
Default
trueprintFunctionName?
optionalprintFunctionName?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:107
Whether to include the function name when formatting functions.
Default
trueprintShadowRoot?
optionalprintShadowRoot?:boolean
Defined in: node_modules/.pnpm/@vitest+pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.d.ts:112
Whether to include shadow-root contents when formatting DOM nodes.
Default
true