MCPcopy Create free account
hub / github.com/github/copilot-sdk / assertEnoent

Function assertEnoent

nodejs/test/session_fs_adapter.test.ts:217–221  ·  view source on GitHub ↗
(error: { code: string; message: string } | undefined)

Source from the content-addressed store, hash-verified

215 const sessionId = "throw-session";
216
217 function assertEnoent(error: { code: string; message: string } | undefined) {
218 expect(error).toBeDefined();
219 expect(error!.code).toBe("ENOENT");
220 expect(error!.message.toLowerCase()).toContain("missing");
221 }
222
223 assertEnoent((await handler.readFile({ sessionId, path: "missing.txt" })).error);
224 assertEnoent(

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…