Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ describe, expect, expectTypeOf, it, vi } from
'vitest'
2
3
describe(
'jest mock compat layer'
, () => {
4
const
returnFactory = (
type
: string) => (value: any) => ({
type
, value })
Callers
nothing calls this directly
Calls
15
returnFactory
Function · 0.85
safeCall
Function · 0.85
mockName
Method · 0.80
getMockName
Method · 0.80
mockReset
Method · 0.80
bind
Method · 0.80
getMockImplementation
Method · 0.80
mockImplementation
Method · 0.80
mockReturnValueOnce
Method · 0.80
mockImplementationOnce
Method · 0.80
mockReturnValue
Method · 0.80
mockRestore
Method · 0.80
Tested by
no test coverage detected