CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/js-unit-tests

Use for any question or task about JavaScript or TypeScript unit tests with Jest or Vitest, including quick how-to questions and tests for one function: mocking a module (jest.mock, vi.mock, vi.hoisted), spies and fake timers, path aliases that fail only in tests (`Cannot find module '@/...'`), coverage thresholds, watch mode and CI. Has authoring conventions and anti-patterns.

1.00x
Quality

94%

Does it follow best practices?

Impact

98%

1.00x

Average score across 10 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

86%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.

A strong, highly actionable skill body: every step ships runnable commands or configs, gotchas are specific and current, and detail is correctly pushed to three well-signaled reference files. The only trims are the boilerplate first-test example and package.json scripts block, and the workflow would benefit from an explicit failure-recovery loop.

Suggestions

Cut or compress the Step 2 trivial sum.test.js examples and the package.json scripts JSON to just the one non-obvious contrast (Jest globals by default vs Vitest explicit imports; bare vitest = watch mode) - Claude already knows basic test syntax and script wiring.

Add an explicit error-recovery checkpoint to the workflow, e.g. after Step 3: 'If tests fail with Cannot find module @/..., verify moduleNameMapper/alias config against tsconfig paths and re-run' - turning the embedded gates into a validate → fix → retry loop.

Tighten the Overview's framework descriptions to the decision-relevant split (build-tool ownership, ecosystem fit) and drop general characterization Claude already knows, e.g. 'batteries-included: expect matchers, snapshot testing'.

DimensionReasoningScore

Conciseness

The body is dense with non-obvious gotchas (Jest 27+ testEnvironment default change, vi.mock hoisting leak, maxWorkers OOM in CI), but the Step 2 trivial sum.test.js example, the package.json scripts JSON block, and the Overview's framework descriptions re-teach basics Claude already knows. Efficient overall with minor over-explanation that could be trimmed.

4 / 5

Actionability

Fully executable throughout: exact install commands, complete jest.config.js and vitest.config.ts blocks, runnable mock code with a worked example, and copy-paste CI YAML with specific flags (--ci, --maxWorkers=2, --reporter=junit). Covers the common cases across the whole lifecycle.

5 / 5

Workflow Clarity

A clearly sequenced Step 1-6 lifecycle (install → first test → config → mocking → coverage → watch/CI) with embedded gates (coverage thresholds fail the run, tsc --noEmit pairing, vitest run --typecheck) and a framework-detection decision procedure. Falls short of a 5 because there is no explicit error-recovery feedback loop (e.g., what to check when a run fails or a threshold is missed).

4 / 5

Progressive Disclosure

Clear sections with a well-signed split: the mainstream Jest/Vitest lifecycle stays inline while edge topics (Mocha maintenance, Jasmine/Karma migration, deep coverage analysis) live in three verified one-level-deep references, each linked at point of need and again in a closing References section. Not a 4 because navigation and content placement are essentially optimal for this bundle.

5 / 5

Total

18

/

20

Passed

Description

100%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.

An exemplary description: it states an explicit trigger clause, enumerates concrete capabilities with named APIs, includes a literal error-message trigger users would paste, and stays tightly scoped to the Jest/Vitest unit-testing niche. No changes needed.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities with named APIs - 'mocking a module (jest.mock, vi.mock, vi.hoisted), spies and fake timers', 'coverage thresholds, watch mode and CI', 'authoring conventions and anti-patterns' - comprehensively covering the unit-test lifecycle. Not a 4: there are no meaningful coverage gaps; even the path-alias case names the exact failure mode.

5 / 5

Completeness

Explicitly answers both: 'what' via the concrete capability list (mocking, spies/timers, path aliases, coverage, watch/CI, conventions) and 'when' via the opening 'Use for any question or task about JavaScript or TypeScript unit tests with Jest or Vitest, including quick how-to questions'. Both are explicit with concrete trigger phrases.

5 / 5

Trigger Term Quality

Comprehensive natural terms with synonyms (JavaScript/TypeScript, Jest/Vitest, unit tests) plus a literal paste-able error string 'Cannot find module @/...' that users would bring verbatim. Terms like mocking, spies, fake timers, coverage, watch mode, and CI are exactly what users say. Not a 4: both framework names, both languages, and a copy-paste trigger are all present.

5 / 5

Distinctiveness Conflict Risk

Clear niche - JS/TS unit testing specifically with Jest or Vitest - with distinct triggers (named mock APIs, the @/ alias error) that adjacent skills (test-code hygiene, reporting) would not fire on. Minimal conflict risk. Not a 4: the scope is tightly fenced to unit-test tooling rather than overlapping a broad 'testing' skill.

5 / 5

Total

20

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page