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