node-typescript-testing

node-typescript-testing is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 55 tokens per session (1,078 once invoked), scanned A, original, Apache-2.0.

A testing guide for TypeScript services running on Node.js, using the repository's test runner and tools such as Vitest, Jest, or node:test. It covers unit tests, HTTP tests, fakes for dependencies, database queries, migrations, and test-first development.

In plain words
What is it for?
Use it to test Node.js APIs and services, including domain functions, service dependencies, route validation, authentication, PostgreSQL queries, and migrations.
Why use it?
It shows how to test business logic without starting the whole service, while still checking routes and database behaviour with suitable environments. It also avoids adding a second test runner to a project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test Node.js APIs and services, including domain functions, service dependencies, route validation, authentication, PostgreSQL queries, and migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/node-typescript-testing
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 makifbaysal/tasktrooper --skill node-typescript-testing
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

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 node-typescript-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/node-typescript-testing/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/node-typescript-testing)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/node-typescript-testing"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/node-typescript-testing/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 node-typescript-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/node-typescript-testing"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/node-typescript-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,078 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.00055 $0.01078
Opus 5.5 $0.00022 $0.00431
Sonnet 5.5 $0.00011 $0.00216
Haiku 4.5 $0.00006 $0.00108

Measured 1mo ago against content hash 8aef9ec4ce4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

node-typescript-testing 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 1mo ago.

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.

catalog/agents/backend-developer/skills/node-typescript-testing/SKILL.md · 83 lines

How it starts

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

TypeScript Service Testing

Overview

Test-first, same discipline as everywhere (see tdd-workflow): write the failing test, watch it fail, minimal code to pass. This skill is the Node.js mechanics for a backend.

Core principle: unit-test services and the domain with fakes for their ports; prove routes, validation and SQL against the real framework and a real database, without opening a port where the framework lets you.

Test levels

Level What it covers Tools
Unit Domain functions and types the repository's runner: Vitest, Jest or node:test
Unit with fakes Service, its ports faked vi.fn() / jest.fn() objects satisfying the port interface
HTTP Route registration, validation, error shape, auth Fastify app.inject(), Nest Test.createTestingModule + supertest, supertest on an Express app
Persistence Queries and migrations against real Postgres @testcontainers/postgresql + the repository's migrate command

Never add a second runner. A new project uses Vitest.

Unit test with a faked port

describe("TaskService.create", () => {
  const repo = { add: vi.fn<TaskRepository["add"]>().mockResolvedValue(undefined) };
  const service = new TaskService(repo);

  beforeEach(() => repo.add.mockClear());

  it("persists and returns the task", async () => {
    const task = await service.create("Write the report", "user-1");
    expect(task).toMatchObject({ title: "Write the report", ownerId: "user-1" });
    expect(repo.add).toHaveBeenCalledWith(task);
  });

  it.each(["", "   ", "x".repeat(201)])("rejects the title %j", async (title) => {
    await expect(service.create(title, "user-1")).rejects.toThrow(InvalidTaskTitle);
    expect(repo.add).not.toHaveBeenCalled();
  });
});

HTTP test without a port (Fastify)

it("answers 400 in the problem shape for a blank title", async () => {
  const app = buildApp({ taskService: fakeService });
  const res = await app.inject({ method: "POST", url: "/tasks", payload: { title: "" }, headers: auth("user-1") });
  expect(res.statusCode).toBe(400);
  expect(res.headers["content-type"]).toContain("application/problem+json");
  expect(res.json()).toMatchObject({ errors: { title: expect.any(String) } });
});

Read the full file on GitHub · 83 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. 1mo ago First seen · 83 lines · 55 tokens per session scan A 8aef9ec4ce4c

Subscribe to this mod's changes

node-typescript-testing is a skill published in the GitHub repository makifbaysal/tasktrooper (123 stars, last pushed today), licensed Apache-2.0. It adds 55 tokens to every session and 1,078 once invoked, about $0.0002 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-10-17.

Related

node-typescript-testing compared with skills from other repositories

node-typescript-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
node-typescript-testingmakifbaysal/tasktrooperSkill123todayApache-2.0A55Claude Code, Codex
agent-testerruvnet/rufloSkill83ktodayMITA15Claude Code
temporal-python-testingwshobson/agentsSkill43k5d agoMITA45Claude Code
python-testingmicrosoft/agent-frameworkSkill15k13d agoMITA29Claude Code, Codex
nemo-automodel-model-onboardingNVIDIA/skillsSkill4.2k2d agoApache-2.0A33Claude Code
cuequivariance-jaxNVIDIA/skillsSkill4.2k2d agoApache-2.0A38Claude Code, Codex
cuequivariance-torchNVIDIA/skillsSkill4.2k2d agoApache-2.0A37Claude Code, Codex