()
| 63 | }) |
| 64 | |
| 65 | const fetchData = () => Promise.resolve('data') |
| 66 | await testClient.query({ queryKey: key, queryFn: fetchData }).catch(noop) |
| 67 | const newQuery = testClient.getQueryCache().find({ queryKey: key }) |
| 68 | expect(newQuery?.options.gcTime).toBe(Infinity) |
nothing calls this directly
no outgoing calls
no test coverage detected