Skip to main content
Version: Next

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

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the MockErrorApi class

Methods

Method

Modifiers

Description

error$()

getErrors()

post(error, context)

waitForError(pattern, timeoutMs)