toBeBold
Deprecated
Prefer toHaveAttrs which checks multiple attributes at once:
typescript
expect(term.cell(0, 0)).toHaveAttrs({ bold: true })Assert that a cell has bold styling.
Signature
typescript
expect(cell).toBeBold()Usage
typescript
// Check a specific cell
expect(term.cell(0, 0)).toBeBold()
// Negation
expect(term.cell(0, 5)).not.toBeBold()Accepts
| Region | Supported |
|---|---|
term.cell(r, c) | Yes |
term.screen | No |
term.row(n) | No |
Notes
- Works on
CellViewobjects returned byterm.cell(row, col) - Bold is typically rendered as increased font weight or brighter colors
See Also
- toHaveAttrs - composable attribute matcher (preferred)
- toBeItalic - italic styling
- toBeDim - dim/faint styling
- toHaveFg - foreground color assertion