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

Function writeEvidenceFixture

scripts/feishu/smoke.test.ts:2152–2158  ·  view source on GitHub ↗
(evidence: ReturnType<typeof buildEvidenceFixture>)

Source from the content-addressed store, hash-verified

2150}
2151
2152function writeEvidenceFixture(evidence: ReturnType<typeof buildEvidenceFixture>): string {
2153 const directory = mkdtempSync(join(tmpdir(), "agentspace-feishu-smoke-"));
2154 const evidencePath = join(directory, "live.json");
2155 writeFileSync(evidencePath, `${JSON.stringify(evidence, null, 2)}\n`, "utf8");
2156 tempFixtureDirectories.push(directory);
2157 return evidencePath;
2158}
2159
2160function writePayloadFixture(payload: Record<string, unknown>): string {
2161 const directory = mkdtempSync(join(tmpdir(), "agentspace-feishu-payload-"));

Callers 1

smoke.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected