(y: number)
| 16 | .useIsPhone as jest.Mock; |
| 17 | |
| 18 | const scrollTo = (y: number) => { |
| 19 | Object.defineProperty(window, 'scrollY', { configurable: true, value: y }); |
| 20 | window.dispatchEvent(new Event('scroll')); |
| 21 | }; |
| 22 | |
| 23 | // The field portals to the root, which asks the request protocol for the |
| 24 | // extension's wrapper; that hook needs a query client. |