(queryKey: string[], data: unknown)
| 227 | Object.defineProperty(window, 'scrollY', { configurable: true, value: 0 }); |
| 228 | const paged = { pages: ['first', 'second'], pageParams: [null, 'cursor'] }; |
| 229 | const watch = (queryKey: string[], data: unknown) => { |
| 230 | queryClient.setQueryData(queryKey, data); |
| 231 | return new QueryObserver(queryClient, { |
| 232 | queryKey, |
| 233 | queryFn: () => data, |
| 234 | staleTime: Infinity, |
| 235 | }).subscribe(() => undefined); |
| 236 | }; |
| 237 | const stop = [ |
| 238 | watch(['popular'], paged), |
| 239 | watch(['ads', 'popular'], paged), |
no outgoing calls
no test coverage detected