({ children }: WrapperType)
| 7 | }; |
| 8 | |
| 9 | const Wrapper = ({ children }: WrapperType) => { |
| 10 | const testQueryClient = new QueryClient({ |
| 11 | defaultOptions: { |
| 12 | queries: { |
| 13 | // gcTime (previously cacheTime in v4) controls how long unused/inactive queries |
| 14 | // remain in memory. Set to 0 in tests to prevent caching between test runs. |
| 15 | gcTime: 0, |
| 16 | staleTime: 0, |
| 17 | retry: false, |
| 18 | }, |
| 19 | }, |
| 20 | }); |
| 21 | return ( |
| 22 | <QueryClientProvider client={testQueryClient}> |
| 23 | <StacApiProvider apiUrl="https://fake-stac-api.net">{children}</StacApiProvider> |
| 24 | </QueryClientProvider> |
| 25 | ); |
| 26 | }; |
| 27 | export default Wrapper; |
nothing calls this directly
no outgoing calls
no test coverage detected