MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / writePayloadFixture

Function writePayloadFixture

scripts/feishu/smoke.test.ts:2160–2166  ·  view source on GitHub ↗
(payload: Record<string, unknown>)

Source from the content-addressed store, hash-verified

2158}
2159
2160function writePayloadFixture(payload: Record<string, unknown>): string {
2161 const directory = mkdtempSync(join(tmpdir(), "agentspace-feishu-payload-"));
2162 const payloadPath = join(directory, "callback.json");
2163 writeFileSync(payloadPath, `${JSON.stringify(payload, null, 2)}\n`, "utf8");
2164 tempFixtureDirectories.push(directory);
2165 return payloadPath;
2166}
2167
2168function readJsonFile(path: string): unknown {
2169 return JSON.parse(readFileSync(path, "utf8")) as unknown;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected