MCPcopy Create free account
hub / github.com/coder/coder / useDesktopConnection.test.ts

File useDesktopConnection.test.ts

site/src/pages/AgentsPage/hooks/useDesktopConnection.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { renderHook } from "@testing-library/react";
2import { act } from "react";
3import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
4import { useDesktopConnection } from "./useDesktopConnection";

Callers

nothing calls this directly

Calls 8

useDesktopConnectionFunction · 0.90
getLastRFBInstanceFunction · 0.85
simulateEventMethod · 0.80
createMockSocketFunction · 0.70
getLastResizeObserverFunction · 0.70
beforeEachFunction · 0.50
attachMethod · 0.45
simulateResizeMethod · 0.45

Tested by

no test coverage detected