Skip to main content
Version: Next

TestEventSubscriber

Home > @backstage/plugin-events-backend-test-utils > TestEventSubscriber

Warning: This API is now obsolete.

EventSubscriber was replaced by EventsService.subscribe.

Signature:

class TestEventSubscriber implements EventSubscriber 

Implements: EventSubscriber

Constructors

Constructor

Modifiers

Description

(constructor)(name, topics)

Constructs a new instance of the TestEventSubscriber class

Properties

Property

Modifiers

Type

Description

name

readonly

string

receivedEvents

readonly

Record<string, EventParams[]>

topics

readonly

string[]

Methods

Method

Modifiers

Description

onEvent(params)

supportsEventTopics()