MCPcopy Create free account
hub / github.com/TanStack/devtools / getFirstFetchBody

Function getFirstFetchBody

packages/devtools-vite/src/virtual-console.test.ts:44–47  ·  view source on GitHub ↗
(fetchMock: ReturnType<typeof vi.fn>)

Source from the content-addressed store, hash-verified

42}
43
44function getFirstFetchBody(fetchMock: ReturnType<typeof vi.fn>) {
45 const [, init] = fetchMock.mock.calls[0]!
46 return JSON.parse(init.body)
47}
48
49describe('virtual-console', () => {
50 test('generates inline code with specified levels', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected