MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / isAsymmetricMatcher

Function isAsymmetricMatcher

api/vitest.utils.test.ts:38–44  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

36
37describe('serializeDates', () => {
38 function isAsymmetricMatcher(x: unknown): x is typeof expect.any {
39 return (
40 typeof x === 'object' &&
41 x !== null &&
42 typeof (x as { asymmetricMatch?: unknown }).asymmetricMatch === 'function'
43 );
44 }
45
46 test('returns primitives unchanged', () => {
47 expect(serializeDates(42)).toBe(42);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected