unit-test
Skill21k starsChanged 7 months agoMITView on GitHub
Write and review xterm.js unit tests with project conventions. Use when editing `*.test.ts` files or when asked for test authoring guidelines.
13 other projects use a version of this.
Trending
Quiet since June.about the whole repository
Most recently taken up by
- neomjs/neo-agent-skillstheir own version, first seen Nov 8, 2026
- eyssette/js-templatetheir own version, first seen Nov 1, 2026
- kudeerliu48-web/CloseCodetheir own version, first seen Nov 1, 2026
- DongDuong2001/pudo-code-systemtheir own version, first seen Oct 13, 2026
- ivyfan-toowell/IvyClawtheir own version, first seen Oct 13, 2026
- phatysddev/skillstheir own version, first seen Oct 9, 2026
Who's talking about xtermjs/xterm.js
- microsoft/terminal“Add support for Kitty/VTE extended underlines (4:x) [SGR]”GitHub · Aug 8, 2020 · 78 reactions
- Stack Overflow“How to make xterm.js accept input?”Stack Overflow · Mar 16, 2018 · 65 votes
- warpdotdev/warp“Support Hyperlinks (a.k.a. HTML-like anchors) in Warp”GitHub · Dec 13, 2022 · 39 reactions
- microsoft/vscode“Experimental WebGL terminal renderer”GitHub · Nov 11, 2019 · 34 reactions
- microsoft/vscode“Windows terminal issues caused by winpty”GitHub · Mar 13, 2018 · 31 reactions
The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 45
Talked about on GitHub, Stack Overflow, Hacker News and Bluesky (45 times).
On GitHub · 23
- Aug 8, 2020Add support for Kitty/VTE extended underlines (4:x) [SGR] — microsoft/terminal78 reactions · 7 comments
- Dec 13, 2022Support Hyperlinks (a.k.a. HTML-like anchors) in Warp — warpdotdev/warp39 reactions · 6 comments
- Nov 11, 2019Experimental WebGL terminal renderer — microsoft/vscode34 reactions · 8 comments
- Mar 13, 2018Windows terminal issues caused by winpty — microsoft/vscode31 reactions · 21 comments
- Nov 28, 2017Support hyperlink ansi escapes in the integrated terminal — microsoft/vscode28 reactions · 10 comments
18 more on GitHub
- Mar 31, 2021Terminal tabs April plan — microsoft/vscode25 reactions · 10 comments
- Sep 9, 2019Iteration Plan for September 2019 — microsoft/vscode23 reactions · 10 comments
- Nov 28, 2017Support hyperlink ansi escapes — vercel/hyper23 reactions · 8 comments
- Aug 3, 2022Add ligature support to terminal take 3 — microsoft/vscode17 reactions · 19 comments
- Dec 10, 2018Update xterm to v3.9.0 — vercel/hyper5 reactions
- Dec 20, 2021Add ligature support to terminal take 2 — microsoft/vscode4 reactions · 5 comments
- Jun 9, 2026fix: Various problems with Chinese IMEs — microsoft/vscode3 reactions · 1 comment
- Nov 5, 2022Fixing wrapped lines handling and Emoji support — LabhanshAgrawal/xterm-link-provider3 reactions · 2 comments
- Sep 21, 2021Support fixed width terminals and toggle line wrapping — microsoft/vscode3 reactions
- Sep 5, 2021Upgrade xterm-addon-ligatures for WebGL support — tolbertam/hyper-font-ligatures3 reactions · 8 comments
- Jan 11, 2018feat(SerialConsole): Introduce SerialConsole component — patternfly/patternfly-react3 reactions · 56 comments
- Mar 30, 2026chore(deps): bump @xterm/xterm from 5.5.0 to 6.0.0 — coppolekkia/EIGENT2 reactions · 1 comment
- Mar 13, 2026Bump the prod-dependencies-minor group across 1 directory with 8 updates — wavetermdev/waveterm2 reactions · 3 comments
- Mar 6, 2026Bump the prod-dependencies-minor group across 1 directory with 7 updates — wavetermdev/waveterm2 reactions · 2 comments
- Feb 24, 2026Bump the prod-dependencies-minor group across 1 directory with 6 updates — wavetermdev/waveterm2 reactions · 3 comments
- Feb 20, 2026Bump the prod-dependencies-minor group across 1 directory with 11 updates — wavetermdev/waveterm2 reactions · 3 comments
- Feb 16, 2026chore(deps): bump @xterm/addon-progress from 0.2.0 to 0.3.0-beta.160 — Kilo-Org/kilocode2 reactions · 3 comments
- Feb 5, 2026Fix Option key for Scandinavian/German keyboards on macOS — polyipseity/obsidian-terminal2 reactions · 1 comment
On Stack Overflow · 16
- Mar 16, 2018How to make xterm.js accept input?65 votes
- Feb 14, 2020How to resolve 'AttachAddon is not a constructor' error on Chrome?5 votes · 1 answer
- May 12, 2020Need VSCode sendSequence keybindings for previous command, next command, move to start of line, move to end of line terminal commands4 votes
- Dec 29, 2019How to parse cursor ANSI escape codes?4 votes
- Mar 9, 2018Docker xterm.js attach3 votes
11 more on Stack Overflow
- Sep 28, 2023Why does Visual Studio Code display some emojis wrong?2 votes
- Jan 16, 2023working xterm.js demo for Svelte/Sveltkit2 votes
- Jan 6, 2023copy text from tmux inside VSCode2 votes
- Jun 22, 2023Why don't ANSI escape codes for blinking text work in VS Code's integrated terminal?1 vote
- Feb 6, 2024Make terminal in VS Code horizontal scroll-able?0 votes
- Jun 14, 2022How to enforce atomatic render for xterm.js0 votes
- May 27, 2022How to import xterm into NodeJS0 votes · 2 answers
- Aug 19, 2020Is there a way to use backspace in terminal without hitting backspace key0 votes
- May 22, 2019Open up terminal/shell on remote server via tcp request0 votes
- Jan 17, 2018Module parse failed - Webpack Angular/cli and xtermjs0 votes
- Jan 19, 2024Why am I getting ReferenceError: self is not defined when I import a client-side library?-1 votes
On Hacker News · 5
- Jan 5, 2018Xterm.js 3.0 – Full in-browser terminal, now up to 45 times faster10 points
- Jul 23, 2024Xterm.js – open-source terminal for the web3 points
- Sep 11, 2019Xterm.js 4.03 points
- Jan 18, 2025Xterm.js – A Terminal for the Web2 points
- Jan 10, 2019Xterm.js: support for text folding1 point
On Bluesky · 1
- Mar 17, 2026https://github.com/xtermjs/xterm.js — @sigmanor.net1 likes and repost
Used with
Projects with it also use e2e-test.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
WhatIfWeDigDeeperSkille2e-test
Create Playwright e2e tests for features in isolated worktree
Also in 4 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- oprogramadorreal/optimus-claude★ 75same name
- ivyfan-toowell/IvyClaw★ 66same name
- johnqtcg/awesome-skills★ 30same name
- kudeerliu48-web/CloseCode★ 14same name
- neomjs/neo-agent-skills★ 11same name
- phatysddev/skills★ 8same name
- DongDuong2001/pudo-code-system★ 5same name
- kevinaimonster/skill-hub★ 4same name
- lldwb/lldwb-claude-skills★ 1same name
- moveju112/skill_verify★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When writing unit tests, follow these rules:
- Very specific: line 10
When writing unit tests for addons, always create a real xterm.js instance instead of mocking it.
- Very specific: line 11
Prefer assert.ok over assert.notStrictEqual when checking something is undefined or not.
- Distinctive: line 12
Avoid comments as most tests should be self-documenting.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

