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

Function expectReplaceAsymmetricMatcher

test/core/test/replace-matcher.test.ts:5–8  ·  view source on GitHub ↗
(actual: any, expected: any)

Source from the content-addressed store, hash-verified

3
4describe('replace asymmetric matcher', () => {
5 const expectReplaceAsymmetricMatcher = (actual: any, expected: any) => {
6 const replaced = replaceAsymmetricMatcher(actual, expected)
7 expect(replaced.replacedActual).toEqual(replaced.replacedExpected)
8 }
9 it('should work when various types are passed in', () => {
10 expectReplaceAsymmetricMatcher(null, null)
11 expectReplaceAsymmetricMatcher(undefined, undefined)

Callers 1

Calls 1

replaceAsymmetricMatcherFunction · 0.90

Tested by

no test coverage detected