(value: string, max: number)
| 64 | const MAX_PREVIEW_CHARS = 30_000; |
| 65 | |
| 66 | const truncate = (value: string, max: number): string => |
| 67 | value.length > max |
| 68 | ? `${value.slice(0, max)}\n... [truncated ${value.length - max} chars]` |
| 69 | : value; |
| 70 | |
| 71 | export const formatExecuteResult = ( |
| 72 | result: ExecuteResult, |
no outgoing calls
no test coverage detected