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

Method asymmetricMatch

packages/expect/src/jest-extend.ts:160–168  ·  view source on GitHub ↗
(other: unknown)

Source from the content-addressed store, hash-verified

158 }
159
160 asymmetricMatch(other: unknown) {
161 const { pass } = expectAssertion.call(
162 this.getMatcherContext(expect),
163 other,
164 ...this.sample,
165 ) as SyncExpectationResult
166
167 return this.inverse ? !pass : pass
168 }
169
170 toString() {
171 return `${this.inverse ? 'not.' : ''}${expectAssertionName}`

Callers 3

replaceAsymmetricMatcherFunction · 0.45
asymmetricMatchFunction · 0.45
JestChaiExpectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected