Backstage
    Preparing search index...

    Mock implementation of the core-plugin-api#ErrorApi to be used in tests. Includes withForError and getErrors methods for error testing.

    interface MockErrorApi {
        error$(): Observable<
            { context?: ErrorApiErrorContext; error: ErrorApiError },
        >;
        getErrors(): ErrorWithContext[];
        post(error: ErrorApiError, context?: ErrorApiErrorContext): void;
        waitForError(
            pattern: RegExp,
            timeoutMs?: number,
        ): Promise<ErrorWithContext>;
    }

    Implements

    Index

    Methods

    post