Skip to content

feat: add queuing to event-clients #83

feat: add queuing to event-clients

feat: add queuing to event-clients #83

Triggered via pull request August 9, 2025 17:11
Status Failure
Total duration 1m 23s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Test
Process completed with exit code 1.
tests/index.test.ts > EventClient > onAllPluginEvents > should listen to all events that come from the plugin: packages/event-bus-client/tests/index.test.ts#L196
AssertionError: expected 1st "spy" call to have been called with [ { type: 'test:event', …(2) } ], but called only 0 times ❯ tests/index.test.ts:196:28
tests/index.test.ts > EventClient > onAll > should listen to all events even if they do not come from the registered client: packages/event-bus-client/tests/index.test.ts#L165
AssertionError: expected "spy" to be called with arguments: [ { type: 'test:event', …(2) } ] Number of calls: 0 ❯ tests/index.test.ts:165:28
tests/index.test.ts > EventClient > emit > should emit an event with the correct type and payload to the event bus: packages/event-bus-client/tests/index.test.ts#L148
AssertionError: expected "spy" to be called with arguments: [ { type: 'test:event', …(2) } ] Number of calls: 0 ❯ tests/index.test.ts:148:28
tests/index.test.ts > EventClient > on > should register an event listener for the specified event and get events when they are emitted: packages/event-bus-client/tests/index.test.ts#L107
AssertionError: expected "spy" to be called with arguments: [ { type: 'test:event', …(2) } ] Number of calls: 0 ❯ tests/index.test.ts:107:28
tests/index.test.ts > EventClient > on > should register an event with the pluginId (event => test:event): packages/event-bus-client/tests/index.test.ts#L94
AssertionError: expected "spy" to be called with arguments: [ 'test:event', Any<Function> ] Number of calls: 0 ❯ tests/index.test.ts:94:27
tests/index.test.ts > EventClient > getGlobalTarget > should use the window object if the globalTarget is not set for emitting/listening/removing of events: packages/event-bus-client/tests/index.test.ts#L73
AssertionError: expected "bound dispatchEvent" to be called with arguments: [ Any<Event> ] Number of calls: 0 ❯ tests/index.test.ts:73:29
tests/index.test.ts > EventClient > getGlobalTarget > if the global target is set it should re-use it for emitting/listening/removing of events: packages/event-bus-client/tests/index.test.ts#L49
AssertionError: expected "dispatchEvent" to be called with arguments: [ Any<Event> ] Number of calls: 0 ❯ tests/index.test.ts:49:29