MCPcopy Create free account
hub / github.com/callstack/agent-device / writePayloadFile

Function writePayloadFile

src/core/dispatch-payload.test.ts:17–21  ·  view source on GitHub ↗
(name: string, contents: string)

Source from the content-addressed store, hash-verified

15});
16
17async function writePayloadFile(name: string, contents: string): Promise<string> {
18 const filePath = path.join(tmpDir, name);
19 await fs.writeFile(filePath, contents, 'utf8');
20 return filePath;
21}
22
23function expectInvalidArgs(promise: Promise<unknown>, messageFragment: string) {
24 return expect(promise).rejects.toThrow(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…