MCPcopy
hub / github.com/TanStack/query / mutations.test.tsx

File mutations.test.tsx

packages/query-core/src/__tests__/mutations.test.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { queryKey, sleep } from '@tanstack/query-test-utils'
2import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
3import { QueryClient } from '..'
4import { MutationObserver } from '../mutationObserver'

Callers

nothing calls this directly

Calls 15

queryKeyFunction · 0.90
executeMutationFunction · 0.90
sleepFunction · 0.90
onSuccessFunction · 0.85
getMutationCacheMethod · 0.80
fnFunction · 0.70
unsubscribeFunction · 0.50
mountMethod · 0.45
clearMethod · 0.45
mutateMethod · 0.45
setMutationDefaultsMethod · 0.45
getCurrentResultMethod · 0.45

Tested by

no test coverage detected