Skip to content

Commit 1fa539a

Browse files
authored
test(query-core): fix mutationFn to use Promise.resolve to match TypeScript requirements (#8875)
1 parent 747eea8 commit 1fa539a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,8 @@ describe('dehydration and rehydration', () => {
799799
queryClient,
800800
{
801801
mutationKey: ['mutation'],
802-
mutationFn: async () => {
803-
return 'mutation'
802+
mutationFn: () => {
803+
return Promise.resolve('mutation')
804804
},
805805
scope: {
806806
id: 'scope',

0 commit comments

Comments
 (0)