# Tui Test Renderer

> Set up testing utilities for TUI components with ink-testing-library and Bubble Tea testing.

- Skill: `a5c-ai/tui-test-renderer` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add a5c-ai/tui-test-renderer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/a5c-ai/tui-test-renderer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: a5c-ai (https://skillmd.com/u/a5c-ai)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/a5c-ai/tui-test-renderer

---


# TUI Test Renderer

Set up testing utilities for TUI components.

## Generated Patterns

### Ink Testing

```typescript
import { render } from 'ink-testing-library';
import React from 'react';
import { MyComponent } from './MyComponent';

test('renders correctly', () => {
  const { lastFrame, stdin } = render(<MyComponent />);
  expect(lastFrame()).toContain('Expected text');
  stdin.write('\r'); // Simulate enter
  expect(lastFrame()).toContain('After enter');
});
```

### Bubble Tea Testing

```go
import (
  tea "github.com/charmbracelet/bubbletea"
  "testing"
)

func TestModel(t *testing.T) {
  m := initialModel()
  m, _ = m.Update(tea.KeyMsg{Type: tea.KeyEnter})
  view := m.View()
  if !strings.Contains(view, "expected") {
    t.Errorf("Expected view to contain 'expected'")
  }
}
```

## Target Processes

- tui-application-framework
- cli-unit-integration-testing

