(tokens: Token[] | undefined)
| 207 | |
| 208 | // Helper function to get the text content that will be displayed (after stripAnsi) |
| 209 | function getDisplayText(tokens: Token[] | undefined): string { |
| 210 | return stripAnsi( |
| 211 | tokens |
| 212 | ?.map(_ => formatToken(_, theme, 0, null, null, highlight)) |
| 213 | .join('') ?? '', |
| 214 | ) |
| 215 | } |
| 216 | |
| 217 | // Determine column widths based on displayed content (without formatting) |
| 218 | const columnWidths = tableToken.header.map((header, index) => { |
no test coverage detected