本文へスキップ
Kitbay
スキル

test-writer

MIT2026年10月21日 更新66,525GitHubスター

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

スキルの内容

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.

できること

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