(value: string, max: number)
| 129 | const MAX_PREVIEW_CHARS = 30_000; |
| 130 | |
| 131 | const truncate = (value: string, max: number): string => |
| 132 | value.length > max |
| 133 | ? `${value.slice(0, max)}\n... [truncated ${value.length - max} chars]` |
| 134 | : value; |
| 135 | |
| 136 | export const formatExecuteResult = ( |
| 137 | result: ExecuteResult, |
no outgoing calls
no test coverage detected