MCPcopy
hub / github.com/coder/mux / enqueueRequest

Function enqueueRequest

src/browser/components/SshPromptDialog/SshPromptDialog.test.tsx:88–93  ·  view source on GitHub ↗
(request: SshPromptRequest)

Source from the content-addressed store, hash-verified

86}
87
88async function enqueueRequest(request: SshPromptRequest): Promise<void> {
89 await act(async () => {
90 mockSubscription.push({ type: "request", ...request });
91 await flushReactWork();
92 });
93}
94
95describe("SshPromptDialog", () => {
96 beforeEach(() => {

Callers 1

Calls 2

flushReactWorkFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected