MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / runCode

Function runCode

apps/host-selfhost/src/multi-user.test.ts:124–136  ·  view source on GitHub ↗
(token: string, code: string)

Source from the content-addressed store, hash-verified

122};
123
124const runCode = async (token: string, code: string) => {
125 const res = await handler(
126 new Request(`${BASE}/api/executions`, {
127 method: "POST",
128 headers: {
129 authorization: `Bearer ${token}`,
130 "content-type": "application/json",
131 },
132 body: JSON.stringify({ code }),
133 }),
134 );
135 return res;
136};
137
138test("multiple accounts share one org but isolate per-user connections", async () => {
139 const alice = await signUp("alice@multi.test");

Callers 1

multi-user.test.tsFile · 0.85

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected