(value: unknown, limit = 240)
| 2734 | } |
| 2735 | |
| 2736 | function truncateDebugText(value: unknown, limit = 240): string { |
| 2737 | const text = String(value ?? '').replace(/\s+/gu, ' ').trim(); |
| 2738 | if (!text) { |
| 2739 | return ''; |
| 2740 | } |
| 2741 | return text.length <= limit ? text : `${text.slice(0, limit)}...`; |
| 2742 | } |
| 2743 | |
| 2744 | function mapThreadSummary(raw) { |
| 2745 | return { |
no outgoing calls
no test coverage detected