MCPcopy Create free account
hub / github.com/cortexkit/magic-context / tempDir

Function tempDir

packages/pi-plugin/src/system-prompt.test.ts:14–16  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

12import { createTestDb } from "./test-utils.test";
13
14function tempDir(prefix: string): string {
15 return mkdtempSync(join(tmpdir(), prefix));
16}
17
18describe("buildMagicContextBlock v2 system-prompt parity", () => {
19 it("keeps Magic Context guidance in the system prompt", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected