(hookEvent: string)
| 81 | } |
| 82 | |
| 83 | function shouldEmit(hookEvent: string): boolean { |
| 84 | if ((ALWAYS_EMITTED_HOOK_EVENTS as readonly string[]).includes(hookEvent)) { |
| 85 | return true |
| 86 | } |
| 87 | return ( |
| 88 | allHookEventsEnabled && |
| 89 | (HOOK_EVENTS as readonly string[]).includes(hookEvent) |
| 90 | ) |
| 91 | } |
| 92 | |
| 93 | export function emitHookStarted( |
| 94 | hookId: string, |
no outgoing calls
no test coverage detected