(over: Partial<HookOptions> = {})
| 115 | type HookResult = ReturnType<typeof useCodeAnnotationDraft>; |
| 116 | |
| 117 | const options = (over: Partial<HookOptions> = {}): HookOptions => ({ |
| 118 | annotations: [], |
| 119 | viewedFiles: new Set<string>(), |
| 120 | isApiMode: true, |
| 121 | submitted: false, |
| 122 | ...over, |
| 123 | }); |
| 124 | |
| 125 | function Harness({ opts, resultRef }: { opts: HookOptions; resultRef: { current: HookResult | null } }) { |
| 126 | resultRef.current = useCodeAnnotationDraft(opts); |
no outgoing calls
no test coverage detected