MCPcopy
hub / github.com/jestjs/jest / dispatchSync

Function dispatchSync

packages/jest-circus/src/state.ts:71–75  ·  view source on GitHub ↗
(event: Circus.SyncEvent)

Source from the content-addressed store, hash-verified

69};
70
71export const dispatchSync = (event: Circus.SyncEvent): void => {
72 for (const handler of handlers) {
73 handler(event, getState());
74 }
75};
76
77export const addEventHandler = (handler: Circus.EventHandler): void => {
78 handlers.push(handler);

Callers 6

_dispatchDescribeFunction · 0.90
_addHookFunction · 0.90
_addTestFunction · 0.90
rejectionHandledListenerFunction · 0.90

Calls 1

getStateFunction · 0.70

Tested by

no test coverage detected