Preparing search index...
The search index is not available
Comunica
Comunica
@comunica/utils-jest
jest
fn
Function fn
fn
()
:
Mock
Creates a mock function. Optionally takes a mock implementation.
Returns
Mock
fn
<
T
,
Y
extends
any
[]
,
C
=
any
>
(
implementation
?:
(
this
:
C
,
...
args
:
Y
)
=>
T
,
)
:
Mock
<
T
,
Y
,
C
>
Creates a mock function. Optionally takes a mock implementation.
Type Parameters
T
Y
extends
any
[]
C
=
any
Parameters
Optional
implementation
:
(
this
:
C
,
...
args
:
Y
)
=>
T
Returns
Mock
<
T
,
Y
,
C
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Comunica
Loading...
Creates a mock function. Optionally takes a mock implementation.