(value: string, max: number)
| 88 | const MAX_PREVIEW_CHARS = 30_000; |
| 89 | |
| 90 | const truncate = (value: string, max: number): string => |
| 91 | value.length > max |
| 92 | ? `${value.slice(0, max)}\n... [truncated ${value.length - max} chars]` |
| 93 | : value; |
| 94 | |
| 95 | export const formatExecuteResult = ( |
| 96 | result: ExecuteResult, |
no outgoing calls
no test coverage detected