(id: string)
| 2028 | it('should keep a placeholder that select maps to undefined', async () => { |
| 2029 | const key = createKey() |
| 2030 | const options = (id: string) => |
| 2031 | queryClient.defaultQueryOptions({ |
| 2032 | queryKey: [...key, id], |
| 2033 | queryFn: () => [id], |
| 2034 | enabled: id !== '', |
| 2035 | placeholderData: keepPreviousData, |
| 2036 | select: (items: Array<string>) => items.find((item) => item === id), |
| 2037 | }) |
| 2038 | const observer = new QueryObserver(queryClient, options('a')) |
| 2039 | const unsubscribe = observer.subscribe(() => undefined) |
| 2040 | await vi.advanceTimersByTimeAsync(0) |
no test coverage detected