(
hooksByEventAndMatcher: Record<
HookEvent,
Record<string, IndividualHookConfig[]>
>,
event: HookEvent,
)
| 366 | |
| 367 | // Get sorted matchers for a specific event |
| 368 | export function getSortedMatchersForEvent( |
| 369 | hooksByEventAndMatcher: Record< |
| 370 | HookEvent, |
| 371 | Record<string, IndividualHookConfig[]> |
| 372 | >, |
| 373 | event: HookEvent, |
| 374 | ): string[] { |
| 375 | const matchers = Object.keys(hooksByEventAndMatcher[event] || {}) |
| 376 | return sortMatchersByPriority(matchers, hooksByEventAndMatcher, event) |
| 377 | } |
| 378 | |
| 379 | // Get hooks for a specific event and matcher |
| 380 | export function getHooksForMatcher( |
no test coverage detected