MCPcopy
hub / github.com/vitest-dev/vitest / rpcDone

Function rpcDone

packages/browser/src/client/tester/rpc.ts:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const promises = new Set<Promise<unknown>>()
26
27export async function rpcDone(): Promise<unknown[] | undefined> {
28 if (!promises.size) {
29 return
30 }
31 const awaitable = Array.from(promises)
32 return Promise.all(awaitable)
33}
34
35export function createSafeRpc(
36 client: VitestBrowserClient,

Callers

nothing calls this directly

Calls 1

allMethod · 0.80

Tested by

no test coverage detected