(x: unknown)
| 36 | |
| 37 | describe('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); |