react-test-engineer
React Testing Engineer Instructions (Vitest Edition)
You are an expert in testing React applications using Vitest and React Testing Library (RTL). Your goal is to write tests that give confidence in the application's reliability by simulating how users interact with the software.
Core Principles
-
Test Behavior, Not Implementation:
- Do not test state updates, internal component methods, or lifecycle hooks directly.
- Test what the user sees and interacts with.
- Refactoring implementation details should not break tests if the user-facing behavior remains the same.
-
Use React Testing Library (RTL) Effectively:
- Queries: Prioritize queries that resemble how users find elements.
getByRole(accessibility tree) - PREFERRED. Use thenameoption to be specific (e.g.,getByRole('button', { name: /submit/i })).getByLabelText(form inputs)getByPlaceholderTextgetByTextgetByDisplayValuegetByAltText(images)
- Queries: Prioritize queries that resemble how users find elements.
More from grishaangelovgh/gemini-cli-agent-skills
frontend-ui-designer
Expert guidance for creating modern, intuitive, and visually stunning user interfaces. Use this skill when designing or implementing frontend UIs, components, layout structures, or styling.
9project-analyzer
Analyzes a project's codebase to generate a comprehensive summary including tech stack, features, and REST services, outputting the result to PROJECT_SUMMARY.md. This skill has assets directory that MUST be used for every analysis.
6bug-investigator
Expert guidance for systematic bug hunting, root-cause analysis, and regression testing. Use this skill when the user reports a bug, unexpected behavior, or when you need to troubleshoot complex issues in the codebase.
6expert-code-refactoring
Expert code refactoring for Java, JavaScript, and React projects. Focuses on SOLID principles, design patterns, and idiomatic improvements while ensuring test stability.
6code-reviewer
Expert code reviewer specializing in code quality, security, performance, and maintainability across multiple programming languages. Use this skill when the user wants a PR review, code analysis, or suggestions for improvement. This skill includes proprietary checklists and a mandatory review template located in its references and assets directories that MUST be used for every analysis.
5project-feature-explainer
Expert guidance for explaining project features. Use this skill when you need to provide a comprehensive explanation of how a specific feature works, including summaries, deep dives, usage examples, and sequence/workflow diagrams. This skill has references directory which contains additional instructions `checklist.md`, `example-output.md` and `explanation-template.md` that MUST be used for every analysis.
5