Skip to content

Commit a8beb4a

Browse files
authored
test(query-core): resolve ESLint typescript-eslint/require-await warnings (#8899)
1 parent 0c463bc commit a8beb4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/query-core/src/__tests__/mutationCache.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ describe('mutationCache', () => {
367367
const onSuccess = vi.fn()
368368
const observer = new MutationObserver(queryClient, {
369369
gcTime: 0,
370-
mutationFn: async () => {
371-
return 'data'
370+
mutationFn: () => {
371+
return Promise.resolve('data')
372372
},
373373
onSuccess,
374374
})

0 commit comments

Comments
 (0)