@@ -35,7 +35,7 @@ describe('queryClient', () => {
3535  } ) 
3636
3737  describe ( 'defaultOptions' ,  ( )  =>  { 
38-     test ( 'should merge defaultOptions' ,  async   ( )  =>  { 
38+     test ( 'should merge defaultOptions' ,  ( )  =>  { 
3939      const  key  =  queryKey ( ) 
4040
4141      const  queryFn  =  ( )  =>  'data' 
@@ -61,7 +61,7 @@ describe('queryClient', () => {
6161      expect ( newQuery ?. options . gcTime ) . toBe ( Infinity ) 
6262    } ) 
6363
64-     test ( 'should get defaultOptions' ,  async   ( )  =>  { 
64+     test ( 'should get defaultOptions' ,  ( )  =>  { 
6565      const  queryFn  =  ( )  =>  'data' 
6666      const  defaultOptions  =  {  queries : {  queryFn }  } 
6767      const  testClient  =  createQueryClient ( { 
@@ -72,7 +72,7 @@ describe('queryClient', () => {
7272  } ) 
7373
7474  describe ( 'setQueryDefaults' ,  ( )  =>  { 
75-     test ( 'should not trigger a fetch' ,  async   ( )  =>  { 
75+     test ( 'should not trigger a fetch' ,  ( )  =>  { 
7676      const  key  =  queryKey ( ) 
7777      queryClient . setQueryDefaults ( key ,  {  queryFn : ( )  =>  'data'  } ) 
7878      const  data  =  queryClient . getQueryData ( key ) 
@@ -111,7 +111,7 @@ describe('queryClient', () => {
111111      expect ( status ) . toBe ( 'error' ) 
112112    } ) 
113113
114-     test ( 'should also set defaults for observers' ,  async   ( )  =>  { 
114+     test ( 'should also set defaults for observers' ,  ( )  =>  { 
115115      const  key  =  queryKey ( ) 
116116      queryClient . setQueryDefaults ( key ,  { 
117117        queryFn : ( )  =>  'data' , 
@@ -124,7 +124,7 @@ describe('queryClient', () => {
124124      expect ( observer . getCurrentResult ( ) . fetchStatus ) . toBe ( 'idle' ) 
125125    } ) 
126126
127-     test ( 'should update existing query defaults' ,  async   ( )  =>  { 
127+     test ( 'should update existing query defaults' ,  ( )  =>  { 
128128      const  key  =  queryKey ( ) 
129129      const  queryOptions1  =  {  queryFn : ( )  =>  'data'  } 
130130      const  queryOptions2  =  {  retry : false  } 
@@ -133,7 +133,7 @@ describe('queryClient', () => {
133133      expect ( queryClient . getQueryDefaults ( key ) ) . toMatchObject ( queryOptions2 ) 
134134    } ) 
135135
136-     test ( 'should merge defaultOptions' ,  async   ( )  =>  { 
136+     test ( 'should merge defaultOptions' ,  ( )  =>  { 
137137      const  key  =  queryKey ( ) 
138138
139139      queryClient . setQueryDefaults ( [ ...key ,  'todo' ] ,  {  suspense : true  } ) 
@@ -148,7 +148,7 @@ describe('queryClient', () => {
148148  } ) 
149149
150150  describe ( 'defaultQueryOptions' ,  ( )  =>  { 
151-     test ( 'should default networkMode when persister is present' ,  async   ( )  =>  { 
151+     test ( 'should default networkMode when persister is present' ,  ( )  =>  { 
152152      expect ( 
153153        createQueryClient ( { 
154154          defaultOptions : { 
@@ -160,7 +160,7 @@ describe('queryClient', () => {
160160      ) . toBe ( 'offlineFirst' ) 
161161    } ) 
162162
163-     test ( 'should not default networkMode without persister' ,  async   ( )  =>  { 
163+     test ( 'should not default networkMode without persister' ,  ( )  =>  { 
164164      expect ( 
165165        createQueryClient ( { 
166166          defaultOptions : { 
@@ -172,7 +172,7 @@ describe('queryClient', () => {
172172      ) . toBe ( undefined ) 
173173    } ) 
174174
175-     test ( 'should not default networkMode when already present' ,  async   ( )  =>  { 
175+     test ( 'should not default networkMode when already present' ,  ( )  =>  { 
176176      expect ( 
177177        createQueryClient ( { 
178178          defaultOptions : { 
@@ -642,7 +642,7 @@ describe('queryClient', () => {
642642      await  expect ( 
643643        queryClient . fetchQuery ( { 
644644          queryKey : key , 
645-           queryFn : async   ( ) : Promise < unknown >  =>  { 
645+           queryFn : ( ) : Promise < unknown >  =>  { 
646646            throw  new  Error ( 'error' ) 
647647          } , 
648648        } ) , 
@@ -923,7 +923,7 @@ describe('queryClient', () => {
923923
924924      const  result  =  await  queryClient . prefetchQuery ( { 
925925        queryKey : key , 
926-         queryFn : async   ( ) : Promise < unknown >  =>  { 
926+         queryFn : ( ) : Promise < unknown >  =>  { 
927927          throw  new  Error ( 'error' ) 
928928        } , 
929929        retry : false , 
@@ -937,7 +937,7 @@ describe('queryClient', () => {
937937
938938      await  queryClient . prefetchQuery ( { 
939939        queryKey : key , 
940-         queryFn : async   ( )  =>  'data' , 
940+         queryFn : ( )  =>  'data' , 
941941        gcTime : 10 , 
942942      } ) 
943943      expect ( queryCache . find ( {  queryKey : key  } ) ) . toBeDefined ( ) 
@@ -973,7 +973,7 @@ describe('queryClient', () => {
973973      const  key3  =  queryKey ( ) 
974974      await  queryClient . fetchQuery ( { 
975975        queryKey : key1 , 
976-         queryFn : async   ( )  =>  'data' , 
976+         queryFn : ( )  =>  'data' , 
977977      } ) 
978978      try  { 
979979        await  queryClient . fetchQuery ( { 
@@ -1023,7 +1023,7 @@ describe('queryClient', () => {
10231023      const  key1  =  queryKey ( ) 
10241024      await  queryClient . fetchQuery ( { 
10251025        queryKey : key1 , 
1026-         queryFn : async   ( )  =>  'data' , 
1026+         queryFn : ( )  =>  'data' , 
10271027      } ) 
10281028      queryClient . fetchQuery ( { 
10291029        queryKey : key1 , 
@@ -2029,7 +2029,7 @@ describe('queryClient', () => {
20292029      onlineManager . setOnline ( true ) 
20302030    } ) 
20312031
2032-     test ( 'should not notify queryCache and mutationCache after multiple mounts/unmounts' ,  async   ( )  =>  { 
2032+     test ( 'should not notify queryCache and mutationCache after multiple mounts/unmounts' ,  ( )  =>  { 
20332033      const  testClient  =  createQueryClient ( ) 
20342034      testClient . mount ( ) 
20352035      testClient . mount ( ) 
0 commit comments