MCPcopy
hub / github.com/TanStack/query / useMutation.test.ts

File useMutation.test.ts

packages/vue-query/src/__tests__/useMutation.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
2import { reactive, ref } from 'vue-demi'
3import { sleep } from '@tanstack/query-test-utils'
4import { useMutation } from '../useMutation'

Callers

nothing calls this directly

Calls 9

useMutationFunction · 0.90
sleepFunction · 0.90
useQueryClientFunction · 0.90
getMutationCacheMethod · 0.80
mutateFunction · 0.50
mutateMethod · 0.45
findMethod · 0.45
getAllMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected