Skip to main content

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

ConstructorModifiersDescription
(constructor)(name, topics)Constructs a new instance of the TestEventSubscriber class

Properties

PropertyModifiersTypeDescription
namereadonlystring
receivedEventsreadonlyRecord<string, EventParams[]>
topicsreadonlystring[]

Methods

MethodModifiersDescription
onEvent(params)
supportsEventTopics()