Agent skill

Handsontable Unit Testing

by handsontable in handsontable/handsontable

Conventions for Handsontable's Jest unit and TypeScript type tests: where files go, how to run them, mocking limits and when to write an E2E test instead.

Custom licenceAuto-check passedTesting & QA

Install Handsontable Unit Testing

skills CLI
$ npx skills add handsontable/handsontable --skill handsontable-unit-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install handsontable/handsontable handsontable-unit-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/handsontable/handsontable.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/handsontable-unit-testing .claude/skills/handsontable-unit-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
handsontable-unit-testing
GitHub stars
22k
Token cost
~1.2k tokens
SKILL.md length
415 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
Custom licence

At a glance

Conventions for Handsontable's Jest unit and TypeScript type tests: where files go, how to run them, mocking limits and when to write an E2E test instead.

  • Writing or changing Jest unit tests for Handsontable core, plugins or utilities
  • SKILL.md covers Unit vs E2E, Conventions, Run commands and Large datasets, plus 3 more sections
  • Calls npm, npx and tsc
  • Adding TypeScript type tests for a public API change

What it does

The guide covers unit tests named *.unit.js or *.unit.ts, kept in __tests__ folders beside the source, and TypeScript type tests named *.types.ts. Tests run on Jest with jsdom and the jest-jasmine2 runner, with module aliases that map handsontable and walkontable paths to the source and styles to a mock. The test bootstrap supplies ResizeObserver and IntersectionObserver mocks, and other mocking uses jest.fn and jest.spyOn.

It favors end-to-end tests. Pure logic, utilities and data transformations suit unit tests, while DOM interaction, rendering and browser events go to Playwright tests, and a unit test that needs a mocked module should become an E2E test. Run commands are given for the whole suite and for a targeted path pattern, along with two traps where a run looks green while testing nothing: passing several patterns in one call, and invoking Jest without the task's own environment settings, which reports zero tests.

When your agent uses it

  • Writing or changing Jest unit tests for Handsontable core, plugins or utilities
  • Adding TypeScript type tests for a public API change
  • Deciding whether a case needs a unit test or an E2E test
  • Adding coverage for a bug fix or internal refactor

Example prompts

  • “Add a unit test for the new data filter helper under its __tests__ folder.”
  • “Write a type test for the new plugin option, using real assignments.”
  • “My targeted unit run printed green but zero tests ran. What went wrong?”

Requirements

  • A checkout of the Handsontable repository
  • Node.js with npm

What it can do on your machine

Read from SKILL.md and the folder at commit 68b5e97. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • npx
    • tsc

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Handsontable Unit Testing loads about 1.2k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 415 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~113
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 415 words (~1,214 tokens).

“"E2E" means a new Playwright test in tests/e2e/ (skill handsontable-playwright-e2e). The handsontable() / selectCell() globals are legacy Jasmine helpers, unavailable in unit tests; add no new *.spec.js.”

— opening of SKILL.md by handsontable, Custom licence
name
handsontable-unit-testing

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/handsontable-unit-testing of handsontable/handsontable.

Open the folder on GitHubat commit 68b5e97

Compare with similar skills

Handsontable Unit Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Handsontable Unit Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Handsontable Unit Testing this skillhandsontable/handsontable22k—~1.2kAutomated safety check: PassCustom licence
Designing TestsCloudAI-X/claude-workflow-v21.4k1 repos~1.5kAutomated safety check: PassMIT
Playwright Testingchongdashu/vibejam-starter-pack149—~2.1kAutomated safety check: PassNone
Playwright Testingchongdashu/vibejam-starter-pack149—~2.2kAutomated safety check: PassNone
Run Unit TestsAzure/cosmos-explorer131—~638Automated safety check: PassMIT
Testingradix-ng/primitives274—~3.3kAutomated safety check: PassMIT

Similar skills

  • Designing Tests

    CloudAI-X/claude-workflow-v2

    Designs and implements testing strategies for any codebase. An agent skill from CloudAI-X/claude-workflow-v2.

    1.4k GitHub starsUsed in 1 repo~1.5k tokens
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.1k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.2k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Run Unit Tests

    Azure/cosmos-explorer

    Official

    Run unit tests for the Cosmos Explorer project. An agent skill from Azure/cosmos-explorer.

    131 GitHub stars~638 tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Testing

    radix-ng/primitives

    Test Radix NG primitives across every layer and pick the RIGHT one for a change: Vitest unit (zoneless), jest-axe a11y, Playwright browser regression (apps/visual-regression), SSR…

    274 GitHub stars~3.3k tokensUpdated 8 days ago
    Testing & QAAuto-check passed
  • Web Testing with Playwright and Vitest

    withkynam/vibecode-pro-max-kit

    Covers web testing from unit to E2E, load, visual, accessibility and security checks, with Playwright, Vitest and k6 guides plus a Playwright setup script.

    1.1k GitHub stars~892 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed

More from handsontable/handsontable

All 31 skills in this repo
  • Handsontable Playwright E2E Tests

    handsontable/handsontable

    Guides writing and changing Playwright end-to-end tests for Handsontable using page objects, data-testid hooks and deterministic waits.

    22k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Guides changes to the @handsontable/angular-wrapper package: the HotTableComponent lifecycle, NgZone performance handling, settings services and the ng-packagr build.

    22k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • BrowserStack Live Testing

    handsontable/handsontable

    Opens a live BrowserStack session on a real Android, iOS or desktop browser for a local or public URL, tunneling localhost through Cloudflare when needed.

    22k GitHub stars~950 tokensUpdated today
    Auto-check passed
  • Handsontable Changelog Entry

    handsontable/handsontable

    Decides whether a code change needs a changelog entry and creates the JSON file in .changelogs with the right type, framework and user-facing title.

    22k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Code Review Graph Navigator

    handsontable/handsontable

    Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.

    22k GitHub stars~939 tokensUpdated today
    Auto-check passed
  • Handsontable Coordinate Systems

    handsontable/handsontable

    Explains Handsontable's physical, visual and renderable row and column coordinate spaces and how to convert between them with IndexMapper, for debugging misplaced rows or columns.

    22k GitHub stars~721 tokensUpdated today
    Auto-check passed

Questions about Handsontable Unit Testing

What does Handsontable Unit Testing do?

Conventions for Handsontable's Jest unit and TypeScript type tests: where files go, how to run them, mocking limits and when to write an E2E test instead. ts. Tests run on Jest with jsdom and the jest-jasmine2 runner, with module aliases that map handsontable and walkontable paths to the source and styles to a mock.

When should I use Handsontable Unit Testing?

Handsontable Unit Testing fits situations like: writing or changing Jest unit tests for Handsontable core, plugins or utilities; adding TypeScript type tests for a public API change; deciding whether a case needs a unit test or an E2E test; adding coverage for a bug fix or internal refactor.

How do I install Handsontable Unit Testing in Claude Code?

Run `npx skills add handsontable/handsontable --skill handsontable-unit-testing -a claude-code`. Or copy the skill folder (.claude/skills/handsontable-unit-testing in handsontable/handsontable) into .claude/skills/handsontable-unit-testing in your project. Claude Code loads it when a task matches its description.

How do I install Handsontable Unit Testing in Codex?

Run `npx skills add handsontable/handsontable --skill handsontable-unit-testing -a codex`. Or copy the skill folder (.claude/skills/handsontable-unit-testing in handsontable/handsontable) into .agents/skills/handsontable-unit-testing in your project. Codex loads it when a task matches its description.

Can I use Handsontable Unit Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add handsontable/handsontable --skill handsontable-unit-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/handsontable-unit-testing, .gemini/skills/handsontable-unit-testing, .github/skills/handsontable-unit-testing and .opencode/skills/handsontable-unit-testing in your project.

What does Handsontable Unit Testing need to run?

Going by SKILL.md and its folder, Handsontable Unit Testing needs the command-line tools its instructions call (npm, npx and tsc). Our summary lists: A checkout of the Handsontable repository; Node.js with npm.

Does Handsontable Unit Testing access the network?

SKILL.md contains no URLs. Its commands use npm and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Handsontable Unit Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Handsontable Unit Testing use?

Handsontable Unit Testing has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Handsontable Unit Testing use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Handsontable Unit Testing?

Skills that share tags, products or a category with Handsontable Unit Testing: Designing Tests (CloudAI-X/claude-workflow-v2, 1.4k stars), Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars), Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars) and Run Unit Tests (Azure/cosmos-explorer, 131 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Handsontable Unit Testing?

handsontable (a GitHub organization) maintains it in handsontable/handsontable, which has 22,059 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 7, 2026.

Source: handsontable/handsontable on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.