Backstage
Docs
GitHub
Preparing search index...
@backstage/frontend-test-utils
mockApis
error
Function error
error
(
options
?:
{
collect
?:
boolean
}
,
)
:
ErrorApi
&
{
"[mockApiFactorySymbol]"
:
ApiFactory
<
ErrorApi
,
ErrorApi
,
{}
>
;
}
&
{
getErrors
()
:
{
context
?:
ErrorApiErrorContext
;
error
:
ErrorApiError
}
[]
;
waitForError
(
pattern
:
RegExp
,
timeoutMs
?:
number
,
)
:
Promise
<
{
context
?:
ErrorApiErrorContext
;
error
:
ErrorApiError
}
>
;
}
Fake implementation of @backstage/core-plugin-api#ErrorApi.
Parameters
Optional
options
:
{
collect
?:
boolean
}
Returns
ErrorApi
&
{
"[mockApiFactorySymbol]"
:
ApiFactory
<
ErrorApi
,
ErrorApi
,
{}
>
}
&
{
getErrors
()
:
{
context
?:
ErrorApiErrorContext
;
error
:
ErrorApiError
}
[]
;
waitForError
(
pattern
:
RegExp
,
timeoutMs
?:
number
,
)
:
Promise
<
{
context
?:
ErrorApiErrorContext
;
error
:
ErrorApiError
}
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Docs
GitHub
Backstage
Loading...
Fake implementation of @backstage/core-plugin-api#ErrorApi.