CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/jest-fake-timers

Wraps Jest's built-in modern fake-timers (built on @sinonjs/fake-timers since Jest 27): jest.useFakeTimers(), jest.setSystemTime(), jest.advanceTimersByTime(), jest.runAllTimers(), and jest.useRealTimers() for selective restoration. Use when testing JS/TS code in Jest where setTimeout / setInterval / Date / Date.now need deterministic control.

80

Quality

100%

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

Overview
Quality
Evals
Security
Files

Quality

Content

100%

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

The body is an efficient, code-first reference with executable examples, a clear progression of timer operations, and well-signaled offloading of advanced material to a real bundle file. It reads as a strong, lean skill with no significant weaknesses.

DimensionReasoningScore

Conciseness

Lean body of tight code snippets with only genuinely niche context (the Sinon-vs-Jest API deltas); it assumes Claude's competence and avoids explaining what timers or Jest are, with version framing scoped to the modern-vs-legacy distinction rather than padded prose.

3 / 3

Actionability

Every section ships complete, executable TypeScript test snippets (enable/advance, async variant, runAllTimers, runOnlyPendingTimers) that are copy-paste ready with concrete assertions, hitting the top anchor.

3 / 3

Workflow Clarity

For a single-purpose skill, the sections form an unambiguous sequence (Enable -> Advance -> Async -> Run all -> Run pending -> Advanced) with an anti-patterns table and limitations; no destructive/batch operation requires an explicit validation checkpoint here.

3 / 3

Progressive Disclosure

Core usage stays inline while selective-faking/DST/fetch material is split into the verified one-level-deep references/advanced-scenarios.md, clearly signaled by a link; the References section catalogues sibling resources for easy navigation.

3 / 3

Total

12

/

12

Passed

Description

100%

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

The description is specific, trigger-rich, and clearly states both capability and use conditions in a concise third-person voice. It is a strong example that satisfies all four dimensions at the top anchor.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — jest.useFakeTimers(), jest.setSystemTime(), jest.advanceTimersByTime(), jest.runAllTimers(), and jest.useRealTimers() — matching the anchor for enumerating specific capabilities rather than merely naming a domain.

3 / 3

Completeness

Explicitly answers both what (wraps the listed modern fake-timer APIs) and when ("Use when testing JS/TS code in Jest where setTimeout / setInterval / Date / Date.now need deterministic control"), satisfying the explicit-trigger anchor.

3 / 3

Trigger Term Quality

Natural user-facing terms are well covered ("fake-timers", "Jest", "setTimeout / setInterval / Date / Date.now", "deterministic control"); these are exactly what a user would say when needing this skill, not just internal jargon.

3 / 3

Distinctiveness Conflict Risk

A narrow Jest-specific fake-timer niche with distinctive triggers; unlikely to fire for non-Jest or non-timer tasks, so conflict risk is low.

3 / 3

Total

12

/

12

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents