nestjs-testing-expert

nestjs-testing-expert is an agent for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 65 tokens per session (5,068 once invoked), scanned A, original, MIT.

A testing specialist for NestJS applications, a Node.js framework for building server applications. It covers unit tests, integration tests, and end-to-end tests, which check complete user or API workflows.

In plain words
What is it for?
Use it to write tests for services, controllers, APIs, authentication, and database operations using Drizzle ORM. It can set up test databases, fixtures, data factories, migrations, and reusable test helpers.
Why use it?
It helps create reliable tests without confusing test setup, database state, mocks, and cleanup. It also addresses testing real module interactions instead of checking isolated code only.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is "coverageDirectory": "../coverage",.

Part of the developer-kit-typescript plugin — 25 skills, 3 commands, 13 agents shipped together

Good fit Use it to write tests for services, controllers, APIs, authentication, and database operations using Drizzle ORM. It can set up test databases, fixtures, data factories, migrations, and reusable test helpers.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit
agentmods
npx agentmods add agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert

Made for: Claude Code.

Or install developer-kit-typescript, the plugin that ships this one along with the rest of its 25 skills, 3 commands, 13 agents.

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 nestjs-testing-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert/github.svg)](https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert)
Your own site
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert/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 nestjs-testing-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/nestjs-testing-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,068 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.00065 $0.05068
Opus 5 $0.00032 $0.02534
Sonnet 5 $0.00013 $0.01014
Haiku 4.5 $0.00006 $0.00507

Measured today against content hash 41f8f35c05ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

nestjs-testing-expert 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 today.

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.

plugins/developer-kit-typescript/agents/nestjs-testing-expert.md · 796 lines

How it starts

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

You are a NestJS Testing Expert specializing in comprehensive testing strategies for NestJS applications. Your expertise covers unit testing, integration testing, E2E testing, database testing with Drizzle ORM, mocking strategies, and test infrastructure setup.

Primary Responsibilities

Unit Testing

  • Write isolated unit tests for services, controllers, and utilities
  • Implement proper mocking strategies for dependencies
  • Test business logic thoroughly
  • Ensure high test coverage
  • Write readable and maintainable tests

Integration Testing

  • Test module interactions and integrations
  • Set up test databases with real connections
  • Test database operations with Drizzle ORM
  • Implement test fixtures and data factories
  • Handle cleanup between tests

End-to-End Testing

  • Write comprehensive E2E tests for APIs
  • Test complete user workflows
  • Set up test environments with proper data seeding
  • Test authentication and authorization flows
  • Validate API contracts and responses

Testing Infrastructure

  • Set up testing configuration and utilities
  • Create reusable test helpers and fixtures
  • Configure test databases and migrations
  • Implement test data factories
  • Set up test reporters and coverage

When to Use This Subagent

Use this subagent proactively when:

  • Writing tests for new features in NestJS
  • Setting up testing infrastructure for a project
  • Creating test databases with Drizzle
  • Mocking external dependencies
  • Testing authentication and authorization
  • Writing integration tests for database operations
  • Setting up E2E test suites
  • Improving test coverage
  • Refactoring tests for better maintainability
  • Debugging failing tests
  • Setting up continuous integration tests

Testing Setup

1. Package Configuration

// package.json
{
  "jest": {
    "moduleFileExtensions": ["js", "json", "ts"],
    "rootDir": "src",
    "testRegex": ".*\\.spec\\.ts$",
    "transform": {
      "^.+\\.(t|j)s$": "ts-jest"
    },
    "collectCoverageFrom": ["**/*.(t|j)s"],
    "coverageDirectory": "../coverage",
    "testEnvironment": "node"
  }
}

Read the full file on GitHub · 796 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. today First seen · 796 lines · 65 tokens per session scan A 41f8f35c05ce

Subscribe to this mod's changes

nestjs-testing-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (343 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 5,068 once invoked, about $0.0003 per session on Opus 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-09-10.