跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/leonardomso/33-js-concepts/test-writer

Claude Code Test Writer for JavaScript Documentation Examples

Turn JavaScript tutorial examples into Vitest assertions with source-line references. Organize cases by documentation section and put examples that need browser APIs in a separate test file.

中文

Install in Claude Code

Use Claude Code in the pinned 33-js-concepts checkout. Running the examples requires the repository's Node.js and Vitest dependencies.

  1. Open the pinned repository checkout and confirm `.claude/skills/test-writer/SKILL.md` is present.
  2. Start Claude Code from the repository root and call `/test-writer` with the document path and examples to cover.

Example task

Add assertions for a fictional array tutorial. The example doubles `[3, 5]` with `map` and returns `[6, 10]`. Check both the returned values and preservation of the input array.

What to check

Expect a Vitest case in the matching documentation group with separate assertions for the result and original array, plus the source-line reference.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Should regular and DOM examples share a test file?

Use the project's `.dom.test.js` convention for examples that require jsdom and keep standard examples in `.test.js`.

Related skills from this repository

  • Claude Code fact-check for JavaScript Docs and Example Outputs
Browse Claude Code skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯