Docs
Reference
Guides
Blog
Discord
/
bun:test
/
spyOn
spyOn
F
spyOn
Search the reference...
/
Docs
Reference
Guides
Blog
Discord
/
bun:test
/
spyOn
spyOn
F
spyOn
Symbol
spyOn
function
spyOn
<
T
extends
object
,
K
extends
string
|
number
|
symbol
>
(
obj
:
T
,
methodOrPropertyValue
:
K
)
:
Mock
<
T
[
K
]
extends
(
...
args
:
any
[]
)
=>
any
?
any
[
any
]
:
never
>
Referenced types
type
Mock
<
T
extends
(
...
args
:
any
[]
)
=>
any
>
=
JestMock.Mock
<
T
>
-- Mocks --