Unit Test

Write and review xterm.js unit tests with project conventions. Use when editing `*.test.ts` files or when asked for test authoring guidelines. Use when this capability is needed.

tomevault-io Updated

File contents

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.ok over assert.notStrictEqual when checking something is undefined or not.
  • Avoid comments as most tests should be self-documenting.

Source: xtermjs/xterm.js — distributed by TomeVault.

tomevault-io/skills-registry/tree/main/xtermjs--xterm-js--xterm-js commit 09086f0e7c

Frequently asked questions

npx skillmds@latest add tomevault-io/unit-test