Skip to content

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

RegionSupported
term.cell(r, c)Yes
term.screenNo
term.row(n)No

Notes

  • Works on CellView objects returned by term.cell(row, col)
  • Bold is typically rendered as increased font weight or brighter colors

See Also