.github/skills/tests-unit-renderer/SKILL.md
Guides how to design, implement, and validate high-value unit tests for renderer pure logic (stores, selectors, mappers, and utility flows) with strict no-DOM boundaries and deterministic contract assertions.
npx skillsauth add esplotter/esplotter tests-unit-rendererInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run with: npm run test:unit:renderer
This skill defines how to test renderer business/presentation logic that is pure from the UI rendering layer. It standardizes where tests live, what minimum behavior must be covered, how to isolate runtime collaborators, and how to report outcomes so reviews remain fast and objective.
Canonical policy source: docs/testing/tests.md.
Local layout/context source: docs/testing/tests.md.
tests-components.renderHook(...) or component mounting -> use tests-components.tests-unit-preload.tests-unit-main or tests-unit-main-infrastructure.tests-e2e.render(...), renderHook(...), DOM queries, or interaction events in this suite.should ... format.src/test/renderer/<feature>/src/test/renderer/<feature>/<Unit>.spec.tssrc/test/renderer/<feature>/store/<StoreName>.spec.tssrc/test/renderer/<feature>/<Flow>.spec.tsintegration/ folder.src/test/renderer/<feature>/mocks/<CollaboratorName>Mock.tssrc/test/renderer/shared/<FixtureName>Fixture.ts<CollaboratorName>Mock.ts.set* / given*fail* / willFailWith*expect* (must throw with helpful messages)render(...), renderHook(...), or DOM assertions in this suite.should ... convention.npm run test:unit:renderer passes.npm run test:unit:rendererReturn a structured YAML report including:
status: ok | needs_clarification | errorsummary: what was tested/changed in one paragraphfiles_changed: list of changed pathstests_added_or_updated: list of test files added/updatedmocks_added_or_updated: list of mock files added/updatedcommands_run: commands executed (at minimum npm run test:unit:renderer when applicable)result:
passed: booleanfailed_tests: listerror_excerpt: short excerpt when failingquestions: open questions with reason when clarification is needednext_actions: recommended follow-up actionswarnings: risks, assumptions, or deviationsdevops
Applies consistent renderer UI/UX implementation patterns using a Vercel-inspired white theme, strong accessibility defaults, and repository component conventions.
development
Use this first for any task that changes behavior or tests. This is a test strategy and routing skill, it selects the right test-suite skill(s), defines when to escalate coverage (for example e2e/compiled parity), and enforces regression rules.
tools
Guides how to design, implement, and validate high-value unit tests for renderer pure logic (stores, selectors, mappers, and utility flows) with strict no-DOM boundaries and deterministic contract assertions.
testing
Guides how to design, implement, and validate high-value unit tests for preload bridge contracts, renderer-facing exposures, and IPC delegation behavior with clear boundaries and deterministic collaborator doubles.