unit-test

unit-test is a skill for Claude Code, Codex from NVIDIA-NeMo/nemo-helix. It costs 30 tokens per session (1,822 once invoked), scanned A, original, Apache-2.0.

A unit-testing workflow for Studio components and utilities using Vitest and React Testing Library. Unit tests check small pieces of code in isolation, while React Testing Library checks what users can see and do in a web interface.

In plain words
What is it for?
Use it to write, run, or debug tests for Studio's React components and TypeScript utilities.
Why use it?
It helps catch regressions without testing private implementation details. It also gives guidance for asynchronous UI updates, accessibility queries, and consistent test structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to write, run, or debug tests for Studio's React components and TypeScript utilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/unit-test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA-NeMo/nemo-helix --skill unit-test
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unit-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/unit-test/github.svg)](https://agentmods.dev/skills/nvidia-nemo/nemo-helix/unit-test)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/unit-test"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/unit-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unit-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/unit-test"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/unit-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,822 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01822
Opus 5.5 $0.00012 $0.00729
Sonnet 5.5 $0.00006 $0.00364
Haiku 4.5 $0.00003 $0.00182

Measured yesterday against content hash a6cd172af53e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unit-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

web/.agents/skills/unit-test/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Unit Testing Workflow

React Component Testing

  • Test components using React Testing Library
  • Focus on user behavior, not implementation details
  • Use screen.getByRole() over getByTestId() when possible
  • Test accessibility by querying with roles and labels
  • Avoid testing internal component state directly
  • Use await findBy*() methods for async elements — never wrap getBy*() in waitFor()
  • Use findBy* for elements that appear after async operations (API calls, state updates)
  • Use getBy* for elements that should be immediately present
// DON'T
await waitFor(() => {
  expect(screen.getByText('Data loaded')).toBeInTheDocument();
});

// DO
expect(await screen.findByText('Data loaded')).toBeInTheDocument();

Test Structure

  • Follow Arrange-Act-Assert pattern
  • Use descriptive test names that explain the scenario
  • Group related tests with describe blocks
  • Use test.each for parameterized tests
  • Keep tests focused and independent

Imports (by package)

  • packages/studio: Use tsconfig path aliases — @studio/... for application code and test utilities under src/; @nemo/common/... for the linked common package (see Studio tsconfig.json paths). Prefer aliases over long ../../../ chains; import the module under test with @studio/... when that matches app code style and ESLint rules.
  • Other packages (e.g. packages/common, packages/sdk): Use relative imports for code and specs inside the same package (e.g. ./index, ../form/Widget). Those packages do not use @studio/...; their tsconfig typically has no @studio path map.
  • Cross-package: In Studio only, use @nemo/common/... / @nemo/sdk/... where paths allow it. In packages/common, import sibling modules with relatives; use workspace package boundaries as defined by that package’s config (often no internal @nemo/common self-alias in specs).

Shared mocks and factories (centralize)

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 119 lines · 30 tokens per session scan A a6cd172af53e

Subscribe to this mod's changes

unit-test is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 30 tokens to every session and 1,822 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

unit-test compared with skills from other repositories

unit-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unit-testNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0A30Claude Code, Codex
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
rust-testingaffaan-m/ECCSkill317k4d agoMITA31Claude Code, Kiro
cpp-testingaffaan-m/ECCSkill317k4d agoMITA34Claude Code, Kiro
golang-testingaffaan-m/ECCSkill317k4d agoMITA37Claude Code, Kiro
swift-protocol-di-testingaffaan-m/ECCSkill317k4d agoMITA32Claude Code, Kiro
promptfoo-redteam-setuppromptfoo/promptfooSkill28ktodayMITA65Claude Code, Codex