Agent Skills
› Lanlan13-14/zephyr
› unit-test
unit-test
GitHub提供 xterm.js 单元测试编写与审查规范,指导创建真实实例、使用 assert.ok 及避免注释。适用于编辑 *.test.ts 文件或咨询测试指南场景。
Trigger Scenarios
编辑 *.test.ts 文件时
询问测试编写指南时
Install
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.
Version History
- 2924af0 Current 2026-07-24 16:54


