Agent Skills
› Lanlan13-14/zephyr
› unit-test
unit-test
GitHub指导编写和审查 xterm.js 单元测试,规定使用真实实例而非模拟、优先使用 assert.ok 及避免注释等规范。
触发场景
编辑 *.test.ts 文件时
询问测试编写指南时
安装
npx skills add Lanlan13-14/zephyr --skill unit-test -g -y
SKILL.md
Frontmatter
{
"name": "unit-test",
"description": "Write and review xterm.js unit tests with project conventions. Use when editing `*.test.ts` files or when asked for test authoring guidelines."
}
Unit Test Instructions
When writing unit tests, follow these rules:
- When writing unit tests for addons, always create a real xterm.js instance instead of mocking it.
- Prefer
assert.okoverassert.notStrictEqualwhen checking something is undefined or not. - Avoid comments as most tests should be self-documenting.
版本历史
- 2924af0 当前 2026-07-24 16:54


