(payload: Record<string, unknown>)
| 2158 | } |
| 2159 | |
| 2160 | function 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 | |
| 2168 | function readJsonFile(path: string): unknown { |
| 2169 | return JSON.parse(readFileSync(path, "utf8")) as unknown; |
nothing calls this directly
no outgoing calls
no test coverage detected