( state: HookRegistryState, hookId: string, runId: string, )
| 681 | } |
| 682 | |
| 683 | function attachRunToHook( |
| 684 | state: HookRegistryState, |
| 685 | hookId: string, |
| 686 | runId: string, |
| 687 | ): void { |
| 688 | const hook = state.hooks[hookId] |
| 689 | if (!hook || hook.runIds.includes(runId)) return |
| 690 | hook.runIds.push(runId) |
| 691 | } |
| 692 | |
| 693 | function syncRunsFromSnapshot( |
| 694 | state: HookRegistryState, |
no test coverage detected