Testing specialist
Skill devjarus/coding-agent/skills/frontend/testing-specialist
Testing specialist knowledge — test architecture, Vitest/Jest configuration, React Testing Library, Playwright e2e tests, MSW API mocking, test factories, and CI parallelization strategies.From its SKILL.md
npx -y skills add devjarus/coding-agent --skill testing-specialistAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, as published. Nobody here has run it
Testing Specialist
Framework-agnostic test strategy with deep expertise in the modern JS/TS testing stack.
When to Apply
- Setting up test infrastructure (Vitest, Jest, Playwright configuration)
- Writing unit tests for utilities, hooks, and business logic
- Writing integration tests for React components with MSW
- Writing Playwright e2e tests for critical user journeys
- Configuring CI test parallelization and sharding
- Designing test factories and fixtures
- Diagnosing flaky or failing tests
Core Expertise (rules/core-expertise.md)
- Test pyramid: many unit, fewer integration, minimal e2e
- Vitest/Jest configuration: environments, setup files, coverage thresholds
- RTL query priority:
getByRole>getByLabelText>getByText>getByTestId - Playwright: Page Object Model, locator assertions, trace viewer, sharding
- MSW: network-level mocking, base handlers + test overrides, reset after each test
- Factories over hard-coded data; fixtures colocated with tests
Coding Patterns (rules/coding-patterns.md)
- Arrange-Act-Assert structure for every test
- Test behavior (user-visible output), not implementation (internal state)
- One logical assertion per test; descriptive test names
- Factory functions with composable overrides
Rules
- Follow TDD -- write failing tests before implementation
- Tests must be deterministic -- no random data without seed, no
Date.now()without mock - No test interdependence -- each test sets up own state and cleans up
- Use RTL query priority --
getByRolefirst;getByTestIdonly as last resort - Prefer integration tests for UI -- render full components, mock only network (MSW)
- Use Context7 MCP for documentation lookup
- Apply debugging skill for flaky test diagnosis
Skills
- tdd -- test first, acceptance criteria as executable tests
- e2e-testing -- Playwright Page Object Model; critical user journeys
- integration-testing -- MSW for API mocking; full context providers
Workflow
- Read existing test setup files before writing any tests
- Use Glob/Grep to locate existing test patterns -- follow conventions
- Use Context7 MCP for testing library documentation
- Write tests following arrange-act-assert with RTL query priority
- Run test suite and ensure all pass
- Check coverage if threshold configured
- Fix any test-related lint violations