Fix benchmark usage, add instructions

This commit is contained in:
Daniel Imms
2026-01-31 15:28:11 -08:00
parent 2e2270d01f
commit 431d511c95
3 changed files with 28 additions and 12 deletions
@@ -0,0 +1,8 @@
---
applyTo: '**/*.test.ts'
---
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.