| 78 | |
| 79 | it('should return the correct initial data from middleware', async () => { |
| 80 | const myMiddileware: Middleware = useQueryNext => { |
| 81 | return options => { |
| 82 | return useQueryNext({ |
| 83 | ...options, |
| 84 | initialData: 'initialData', |
| 85 | enabled: false, |
| 86 | }) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | const useGeneratedQuery = createQuery({ |
| 91 | queryKey: uniqueKey(), |
nothing calls this directly
no outgoing calls
no test coverage detected