MCPcopy
hub / github.com/vitest-dev/vitest / isReplaceable

Function isReplaceable

packages/utils/src/diff/index.ts:264–270  ·  view source on GitHub ↗
(obj1: any, obj2: any)

Source from the content-addressed store, hash-verified

262}
263
264function isReplaceable(obj1: any, obj2: any) {
265 const obj1Type = getSimpleType(obj1)
266 const obj2Type = getSimpleType(obj2)
267 return (
268 obj1Type === obj2Type && (obj1Type === 'Object' || obj1Type === 'Array')
269 )
270}
271
272export function printDiffOrStringify(
273 received: unknown,

Callers 1

replaceAsymmetricMatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected