Skip to main content

MockErrorApi

Home > @backstage/test-utils > MockErrorApi

Mock implementation of the ErrorApi to be used in tests. Includes withForError and getErrors methods for error testing.

Signature:

class MockErrorApi implements ErrorApi 

Implements: ErrorApi

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the MockErrorApi class

Methods

MethodModifiersDescription
error$()
getErrors()
post(error, context)
waitForError(pattern, timeoutMs)