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