MCPcopy Create free account
hub / github.com/cloudflare/computer / runtime

Function runtime

packages/computer/tests/script-runner.test.ts:25–31  ·  view source on GitHub ↗
(body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

23}
24
25async function runtime(body: Record<string, unknown>) {
26 return SELF.fetch("https://example.test/runtime", {
27 method: "POST",
28 headers: { "content-type": "application/json" },
29 body: JSON.stringify(body),
30 });
31}
32
33describe("WorkspaceRuntime", () => {
34 it("resolves reserved, relative, and literal dynamic Worker Loader modules", async () => {

Callers 1

Calls 1

fetchMethod · 0.65

Tested by

no test coverage detected