Set up testing utilities for TUI components with ink-testing-library and Bubble Tea testing.
Sets up test utilities for TUI components using ink-testing-library and Bubble Tea.
npx claudepluginhub a5c-ai/babysitterThis skill is limited to using the following tools:
README.mdSet up testing utilities for TUI components.
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');
});
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'")
}
}
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.