(value: string, max: number)
| 110 | const MAX_PREVIEW_CHARS = 30_000; |
| 111 | |
| 112 | const truncate = (value: string, max: number): string => |
| 113 | value.length > max |
| 114 | ? `${value.slice(0, max)}\n... [truncated ${value.length - max} chars]` |
| 115 | : value; |
| 116 | |
| 117 | export const formatExecuteResult = ( |
| 118 | result: ExecuteResult, |
no outgoing calls
no test coverage detected