(error: { code: string; message: string } | undefined)
| 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( |
no outgoing calls
no test coverage detected
searching dependent graphs…