Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

NestJS unit testing with Jest v1.0.0

Use this resource to write, review or debug Jest unit tests for NestJS services

New

  • 517 downloads
  • 121 likes
  • 190 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install nestjs-unit-testing-jest

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent isolates each service, controller or guard with mocked dependencies (DeepMocked, factories, native Jest), follows the AAA structure, then checks performance and open handles. It also covers Kafka and Redis tests.

Mostly picked by

Updated November 2, 2026

Card for the “NestJS unit testing with Jest” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/mocking/: deep mocks, factories and native Jest
  • references/common/: assertions, open handles and performance optimization

Good fit for

  • A NestJS service has no tests and needs them
  • Jest tests become slow or leave open handles

Not for

    Tags

    • jest
    • nestjs
    • unit tests

    About

    You say

    “Write the unit tests for this NestJS billing service with mocked dependencies.”

    Card for the “NestJS unit testing with Jest” skill

    Skill published by bmad-labs under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write, review or debug Jest unit tests for NestJS services
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/common/assertions.md7.2 KB
    • references/common/detect-open-handles.md8.9 KB
    • references/common/examples.md14.3 KB
    • references/common/knowledge.md3.2 KB
    • references/common/performance-optimization.md8.5 KB
    • references/common/rules.md7.2 KB
    • references/kafka/kafka.md17.7 KB
    • references/mocking/deep-mocked.md5.6 KB
    • references/mocking/factories.md7.6 KB
    • references/mocking/jest-native.md7.2 KB
    • references/nestjs/controllers.md7.5 KB
    • references/nestjs/guards.md9.7 KB
    • references/nestjs/interceptors.md10.5 KB
    • references/nestjs/pipes-filters.md12.4 KB
    • references/nestjs/services.md9.4 KB
    • references/redis/redis.md13.7 KB
    • references/repository/mongodb.md9.5 KB
    • references/repository/postgres.md12 KB
    • SKILL.md14.2 KB
    • workflows/debugging/steps/step-01-init.md2.9 KB
    • workflows/debugging/steps/step-01b-continue.md1.8 KB
    • workflows/debugging/steps/step-02-classify-failure.md2.2 KB
    • workflows/debugging/steps/step-03-analyze.md4.3 KB
    • workflows/debugging/steps/step-04-implement-fix.md1.8 KB
    • workflows/debugging/steps/step-05-verify-fix.md2.1 KB
    • workflows/debugging/steps/step-06-document-resolution.md3.9 KB
    • workflows/debugging/templates/output-template.md0.3 KB
    • workflows/debugging/workflow.md3.4 KB
    • workflows/optimizing/steps/step-01-init.md3.5 KB
    • workflows/optimizing/steps/step-01b-continue.md2.1 KB
    • workflows/optimizing/steps/step-02-identify-opportunities.md3.7 KB
    • workflows/optimizing/steps/step-03-optimize-setup.md3.9 KB
    • workflows/optimizing/steps/step-04-fix-open-handles.md5.9 KB
    • workflows/optimizing/steps/step-05-optimize-async.md3.8 KB
    • workflows/optimizing/steps/step-06-optimize-data.md3.4 KB
    • workflows/optimizing/steps/step-07-optimize-organization.md3.3 KB
    • workflows/optimizing/steps/step-08-measure-improvement.md3.2 KB
    • workflows/optimizing/steps/step-09-document-optimizations.md3.6 KB
    • workflows/optimizing/templates/output-template.md0.3 KB
    • workflows/optimizing/workflow.md2.6 KB
    • workflows/reviewing/steps/step-01-init.md2.5 KB
    • workflows/reviewing/steps/step-01b-continue.md1.9 KB
    • workflows/reviewing/steps/step-02-test-structure.md2.6 KB
    • workflows/reviewing/steps/step-03-setup-teardown.md2.6 KB
    • workflows/reviewing/steps/step-04-aaa-pattern.md2.3 KB
    • workflows/reviewing/steps/step-05-assertions.md3.1 KB
    • workflows/reviewing/steps/step-06-coverage.md2.5 KB
    • workflows/reviewing/steps/step-07-exception-testing.md3 KB
    • workflows/reviewing/steps/step-08-compile-report.md3.8 KB
    • workflows/reviewing/templates/output-template.md0.3 KB
    • workflows/reviewing/workflow.md2.2 KB
    • workflows/running/steps/step-01-init.md2.8 KB
    • workflows/running/steps/step-01b-continue.md1.9 KB
    • workflows/running/steps/step-02-run-tests.md2.3 KB
    • workflows/running/steps/step-03-interpret-results.md2 KB
    • workflows/running/steps/step-04-coverage.md2.1 KB
    • workflows/running/steps/step-05-handle-scenarios.md3.1 KB
    • workflows/running/steps/step-06-summary-report.md3.5 KB
    • workflows/running/templates/output-template.md0.3 KB
    • workflows/running/workflow.md2.1 KB
    • workflows/setup/steps/step-01-init.md2.7 KB
    • workflows/setup/steps/step-01b-continue.md1.7 KB
    • workflows/setup/steps/step-02-dependencies.md2.3 KB
    • workflows/setup/steps/step-03-configure-jest.md2.5 KB
    • workflows/setup/steps/step-04-test-helpers.md2.1 KB
    • workflows/setup/steps/step-05-verify-setup.md2.7 KB
    • workflows/setup/steps/step-06-npm-scripts.md2.6 KB
    • workflows/setup/templates/output-template.md0.2 KB
    • workflows/setup/workflow.md2.1 KB
    • workflows/writing/steps/step-01-init.md3.1 KB
    • workflows/writing/steps/step-01b-continue.md2 KB
    • workflows/writing/steps/step-02-test-file-structure.md3.4 KB
    • workflows/writing/steps/step-03-plan-test-cases.md2.4 KB
    • workflows/writing/steps/step-04-happy-path.md2.6 KB
    • workflows/writing/steps/step-05-edge-cases.md3 KB
    • workflows/writing/steps/step-06-error-cases.md3.3 KB
    • workflows/writing/steps/step-07-business-rules.md2.8 KB
    • workflows/writing/steps/step-08-verify-mocks.md4.2 KB
    • workflows/writing/templates/output-template.md0.3 KB
    • workflows/writing/workflow.md2.3 KB

    Origin and licence

    Listed unmodified

    Author
    bmad-labs
    Source
    github.com/bmad-labs/skills/tree/58bf8d9d54bde60c693f683f38d8d385283b7d3b/skills/typescript-unit-testing
    Licence
    MIT

    Notice

    « typescript-unit-testing » (bmad-labs, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.