( queryClient: QueryClient, opts?: InfiniteChatsTestOptions, )
| 98 | |
| 99 | /** Read chats back from the infinite query cache. */ |
| 100 | const readInfiniteChats = ( |
| 101 | queryClient: QueryClient, |
| 102 | opts?: InfiniteChatsTestOptions, |
| 103 | ): TypesGen.Chat[] | undefined => { |
| 104 | const data = queryClient.getQueryData<InfiniteData>(infiniteChatsKey(opts)); |
| 105 | return data?.pages.flat(); |
| 106 | }; |
| 107 | |
| 108 | const makeChat = ( |
| 109 | id: string, |
no test coverage detected