MCPcopy Index your code
hub / github.com/coder/mux / createTempConfig

Function createTempConfig

src/node/services/taskHandleStore.test.ts:9–14  ·  view source on GitHub ↗
(testName: string)

Source from the content-addressed store, hash-verified

7import { TaskHandleStore, WORKSPACE_TURN_TASK_ID_PREFIX } from "@/node/services/taskHandleStore";
8
9async function createTempConfig(testName: string): Promise<{ config: Config; rootDir: string }> {
10 const rootDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), `${testName}-`));
11 const config = new Config(rootDir);
12 await fsPromises.mkdir(config.srcDir, { recursive: true });
13 return { config, rootDir };
14}
15
16describe("TaskHandleStore", () => {
17 it("persists and lists owner-scoped workspace turn handles", async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected