( formatOptions: PrettyFormatOptions, options?: DiffOptions, )
| 213 | } |
| 214 | |
| 215 | function getFormatOptions( |
| 216 | formatOptions: PrettyFormatOptions, |
| 217 | options?: DiffOptions, |
| 218 | ): PrettyFormatOptions { |
| 219 | const { compareKeys, printBasicPrototype, maxDepth } = normalizeDiffOptions(options) |
| 220 | |
| 221 | return { |
| 222 | ...formatOptions, |
| 223 | compareKeys, |
| 224 | printBasicPrototype, |
| 225 | maxDepth: maxDepth ?? formatOptions.maxDepth, |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | function getObjectsDifference( |
| 230 | a: Record<string, any>, |
no test coverage detected