(tokens: Token[] | undefined)
| 622 | |
| 623 | // Helper function to get the text content that will be displayed (after stripAnsi) |
| 624 | function getDisplayText(tokens: Token[] | undefined): string { |
| 625 | return stripAnsi( |
| 626 | tokens |
| 627 | ?.map(_ => formatToken(_, theme, 0, null, null, highlight)) |
| 628 | .join('') ?? '', |
| 629 | ) |
| 630 | } |
| 631 | |
| 632 | // Determine column widths based on displayed content (without formatting) |
| 633 | const columnWidths = tableToken.header.map((header, index) => { |
no test coverage detected