What problem does it solve?
Writing unit tests for Positron's src/vs/ codebase requires choosing the right test pattern (plain, DI builder, or React Testing Library), picking the correct test container preset, and following strict project conventions. This Skill automates that workflow, from analyzing a branch or PR for coverage gaps to writing, type-checking, and independently reviewing the tests.
Core Features & Use Cases
- Branch/PR Test Gap Analysis: Analyzes a branch, PR number, or PR URL via a subagent to produce a structured test plan identifying which files need new or extended tests.
- Pattern-Guided Test Authoring: Selects the correct Vitest pattern (plain, builder with createTestContainer, RTL prop-driven, or RTL service-context) based on the source file's dependencies, then writes tests following project conventions.
- Verification and Independent Review: Runs targeted tests, strict TypeScript checks, ESLint for RTL files, and spawns a review subagent before a single full-suite run.
- Use Case: A developer merges a feature branch touching several src/vs/ services and asks what tests are missing; the Skill analyzes the diff, proposes a test plan, writes the tests after confirmation, and has them independently reviewed.
Quick Start
Ask the assistant to analyze PR 12242 and write the missing Vitest tests for the changed Positron source files.