MCPcopy
hub / github.com/vitest-dev/vitest / jest-mock.test.ts

File jest-mock.test.ts

test/core/test/jest-mock.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, expect, expectTypeOf, it, vi } from 'vitest'
2
3describe('jest mock compat layer', () => {
4 const returnFactory = (type: string) => (value: any) => ({ type, value })

Callers

nothing calls this directly

Calls 15

returnFactoryFunction · 0.85
safeCallFunction · 0.85
mockNameMethod · 0.80
getMockNameMethod · 0.80
mockResetMethod · 0.80
bindMethod · 0.80
getMockImplementationMethod · 0.80
mockImplementationMethod · 0.80
mockReturnValueOnceMethod · 0.80
mockReturnValueMethod · 0.80
mockRestoreMethod · 0.80

Tested by

no test coverage detected