CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

javascript-testing-patterns

Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows.

63

Quality

79%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./plugins/javascript-typescript/skills/javascript-testing-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

61%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is highly actionable with executable examples and a sensible SKILL.md/references split, but it re-teaches basic testing patterns Claude already knows at length, inflating token cost. Adding a sequenced workflow with verification checkpoints (e.g., running coverage and checking thresholds) would strengthen it.

Suggestions

Move basic worked examples (calculator tests, UserService CRUD suite, basic vi.mock module mocking) into references/advanced-testing-patterns.md and keep only the distinctive patterns inline, cutting the main file's token footprint substantially.

Add a short sequenced workflow with validation checkpoints, e.g.: 1) pick framework and apply the config, 2) write tests following the patterns, 3) run `npx vitest run --coverage` and confirm the 80% threshold passes before finishing.

Replace the 15-item best-practices list with the handful of non-obvious rules (fixture overrides, semantic queries over data-testid, mock restoration in afterEach) since the rest are standard knowledge Claude already applies.

DimensionReasoningScore

Conciseness

The ~535-line body devotes large sections to material Claude already knows — a complete calculator add/divide test suite, a UserService CRUD test suite, and basic vi.mock module mocking — which is noticeably padded duplication of standard knowledge rather than a few trimmable spots.

2 / 5

Actionability

Every example is complete, executable, copy-paste-ready TypeScript (jest.config.ts, vitest.config.ts, working test suites, vi.mock/vi.spyOn patterns, faker fixture factory) and covers the common cases, matching the fully-executable anchor.

5 / 5

Workflow Clarity

Content is organized categorically (frameworks, unit, mocking, integration, frontend, fixtures, best practices) but presents no sequenced workflow (e.g., configure framework → write tests → run coverage) and no validation checkpoints, fitting the steps-present-but-checkpoints-missing anchor.

3 / 5

Progressive Disclosure

A clean one-level split: basics inline, advanced material (supertest/Postgres, React Testing Library, snapshots, timers) clearly signposted three times via links to the real references/advanced-testing-patterns.md file; several long inline test suites arguably belong in the reference, keeping it below the ideal-split anchor.

4 / 5

Total

14

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description with concrete capabilities, named frameworks, and an explicit multi-clause "Use when" trigger. Its only weaknesses are incomplete synonym coverage and mild breadth-induced overlap risk with adjacent CI/e2e skills.

DimensionReasoningScore

Specificity

"Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development" lists multiple concrete actions across named frameworks, matching the comprehensive-coverage anchor rather than the several-actions-with-gaps anchor at 4.

5 / 5

Completeness

It explicitly states both what it does (testing strategies across Jest/Vitest/Testing Library with unit, integration, e2e, mocking, fixtures, TDD) and when to use it via a concrete "Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows" clause, matching the top anchor.

5 / 5

Trigger Term Quality

Natural phrases like "writing JavaScript/TypeScript tests", "mocking", "TDD/BDD", and framework names give good keyword coverage, but common variations users say ("test coverage", "snapshot tests", "spec files") are missing, placing it just below the comprehensive-synonyms anchor.

4 / 5

Distinctiveness Conflict Risk

Named frameworks and TDD/BDD scope create a distinct JS-testing niche, but the breadth of "setting up test infrastructure" and end-to-end/CI territory creates minor overlap risk with closely related skills (CI/CD or e2e-framework skills), fitting the mostly-distinct anchor rather than minimal-conflict-risk.

4 / 5

Total

18

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (538 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

wshobson/agents

Path

plugins/javascript-typescript/skills/javascript-testing-patterns/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.