CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/sinon-fake-timers-js

Wraps Sinon's standalone @sinonjs/fake-timers library for JS/TS testing: install(), tick() / tickAsync(), setSystemTime(), restore(); covers timers (setTimeout / setInterval / requestAnimationFrame), Date / performance.now() / hrtime, and the toFake option for selective override. Runner-agnostic - drives the clock directly in Mocha, AVA, Jasmine, node:test, or the browser. Use when JS/TS code needs deterministic timer or clock control and the test runner does not already expose this library behind its own built-in fake-timer API.

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.

A well-structured, executable usage guide: lean and code-driven, with a clear install-through-teardown workflow, an explicit leak-prevention checkpoint, and clean one-level-deep progressive disclosure to a verified reference file.

DimensionReasoningScore

Conciseness

The body is lean and code/table-driven with no padding explaining concepts Claude already knows; the Overview, anti-patterns table, and Limitations each earn their tokens, with only minor redundancy between the Overview and When-to-use runner list.

3 / 3

Actionability

Provides fully executable, copy-paste-ready guidance: npm install, install/tick/tickAsync/setSystemTime code blocks, `npx mocha`/`npx vitest run`, and a CI yaml, plus a concrete anti-patterns table with explicit fixes.

3 / 3

Workflow Clarity

For a simple single-purpose library skill, the Install → Basic install → Tick → Async tick → Teardown sequence is clear, and the critical 'leaked clocks contaminate subsequent tests' warning with `afterEach(() => clock.uninstall())` acts as the key validation checkpoint for the main risk.

3 / 3

Progressive Disclosure

SKILL.md is a concise overview that offloads advanced detail to a single clearly-signaled, one-level-deep link to references/advanced-scenarios.md (verified present); sibling/cross-language catalogs are listed by name without nesting.

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.

A precise, third-person description with concrete API actions, natural trigger terms, an explicit 'Use when' clause, and a clearly bounded niche that distinguishes it from built-in runner fake-timer APIs.

DimensionReasoningScore

Specificity

Lists multiple concrete actions (install(), tick()/tickAsync(), setSystemTime(), restore(), toFake selective override) plus the surfaces it covers (setTimeout/setInterval/requestAnimationFrame, Date/performance.now()/hrtime), matching the 'lists multiple specific concrete actions' anchor.

3 / 3

Completeness

Explicitly answers both what ('Wraps Sinon's standalone @sinonjs/fake-timers library... install(), tick() / tickAsync()...') and when via an explicit 'Use when JS/TS code needs deterministic timer or clock control and the test runner does not already expose this library...' clause.

3 / 3

Trigger Term Quality

Natural trigger terms a user would say are present ('fake timers', 'deterministic timer or clock control', runner names Mocha/AVA/Jasmine), giving good coverage; it is not merely technical jargon.

3 / 3

Distinctiveness Conflict Risk

Niche is sharply bounded to Sinon's standalone fake-timers for runners lacking a built-in fake-timer API, making conflict with sibling skills (e.g. jest-fake-timers) unlikely.

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