Skip to content
Kitbay
Skill

test-writer

MITUpdated on Oct 21, 202666,525GitHub stars

A skill kept in the 33 JavaScript Concepts repository that writes Vitest tests for the code examples on its JavaScript concept pages.

What the skill teaches

A skill kept in the 33 JavaScript Concepts repository that writes Vitest tests for the code examples on its JavaScript concept pages. The agent sorts each example into testable, DOM, error, conceptual or browser-only, turns the testable ones into assertions grouped by page section with references to the source lines, and uses jsdom for examples that touch the DOM. It gives templates for standard and DOM test files, a coverage report format, and the npm commands for running, watching and measuring tests.

Capabilities

  • Sort documentation code examples by testability
  • Write Vitest tests for code examples
  • Test DOM examples with jsdom
  • Report test coverage per page