MCPcopy Create free account
hub / github.com/TanStack/query /

Class

packages/query-devtools/src/__tests__/Devtools.test.tsx:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 vi.stubGlobal(
72 'ResizeObserver',
73 class {
74 callback: ResizeObserverCallback
75 constructor(callback: ResizeObserverCallback) {
76 this.callback = callback
77 }
78 observe = vi.fn((target: Element) => {
79 this.callback(
80 [
81 {
82 target,
83 contentRect: { width: 1000, height: 500 } as DOMRectReadOnly,
84 } as ResizeObserverEntry,
85 ],
86 this as unknown as ResizeObserver,
87 )
88 })
89 unobserve = vi.fn()
90 disconnect = vi.fn()
91 },
92 )
93 queryClient = new QueryClient()
94 document.documentElement.style.fontSize = '16px'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected