Agent Skills
› Lanlan13-14/zephyr
› unit-test
unit-test
GitHub提供 xterm.js 单元测试编写与审查规范,指导在编辑测试文件时遵循项目约定,如使用真实实例、优先使用 assert.ok 及避免注释。
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


