Make agent instructions harness agnostic

This commit is contained in:
Daniel Imms
2026-05-01 10:08:04 -07:00
parent ad4a6e8cb9
commit f9cea732f2
6 changed files with 22 additions and 18 deletions
+12
View File
@@ -0,0 +1,12 @@
---
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.ok` over `assert.notStrictEqual` when checking something is undefined or not.
- Avoid comments as most tests should be self-documenting.