(error: Error, code: string)
| 3 | import { handleError } from "../../src/internal/error.ts" |
| 4 | |
| 5 | const withCode = (error: Error, code: string): Error & { readonly code: string } => Object.assign(error, { code }) |
| 6 | |
| 7 | describe("handleError", () => { |
| 8 | const mapError = handleError("FileSystem", "test", "/tmp/test") |