跳到技能内容
词映 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/xtermjs/xterm.js/unit-test

Codex xterm.js addon unit tests

Write or review TypeScript tests for xterm.js addons. Use a real terminal instance and verify addon behavior with clear assertions.

中文

Install in Codex

Codex with an xterm.js TypeScript test checkout and a real Terminal instance.

  1. Review `.agents/skills/unit-test/SKILL.md` and its requirements at the pinned GitHub commit.
  2. Create `.agents/skills/unit-test/` in your project and save the reviewed file as `.agents/skills/unit-test/SKILL.md`.
  3. Start Codex from that project's root, then type `$unit-test` and select the matching skill.

Example task

Check whether addon loading passes the current terminal. This sample addon's activate method saves its argument as received.
{"id":"addon-demo","terminal":"Terminal","initialReceived":null,"call":"loadAddon"}

What to check

The `received` field of `addon-demo` references the same real `Terminal`. Expect `assert.strictEqual(addon.received, terminal)` to pass.

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

Frequently asked question

Can I mock the terminal when testing xterm.js addon initialization?

The project's test convention calls for a real terminal instance. Check the instance or addon state after loading.

Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯