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

Function isAsymmetricMatcher

packages/utils/src/diff/index.ts:259–262  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

257const MAX_DIFF_STRING_LENGTH = 20_000
258
259function isAsymmetricMatcher(data: any) {
260 const type = getSimpleType(data)
261 return type === 'Object' && typeof data.asymmetricMatch === 'function'
262}
263
264function isReplaceable(obj1: any, obj2: any) {
265 const obj1Type = getSimpleType(obj1)

Callers 1

replaceAsymmetricMatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected