Pular para o conteúdo
Kitbay
Skill

test-writer

MITAtualizado em 21 de out. de 202666.525Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

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