Skill / SKILL.md

Typescript Unit Testing

bmad-labs/skills

Unit testing for TypeScript/NestJS projects using Jest, @golevelup/ts-jest (DeepMocked/createMock), and in-memory databases, with AAA structure. Use whenever the user is working on `.spec.ts` files or asks to set up Jest, write/add tests for a service/usecase/controller/guard/interceptor/pipe/filter, mock dependencies, review test quality or coverage, run unit tests, debug failing or flaky tests, or optimize test performance and open handles.
4 views 20 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Unit testing for TypeScript/NestJS projects using Jest, @golevelup/ts-jest (DeepMocked/createMock), and in-memory databases, with AAA structure. Use whenever the user is working on `.spec.ts` files or asks to set up Jest, write/add tests for a service/usecase/controller/guard/interceptor/pipe/filter, mock dependencies, review test quality or coverage, run unit tests, debug failing or flaky tests, or optimize test performance and open handles.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/bmad-labs/skills' skill-source

Use the complete skill-source/skills/typescript-unit-testing directory with your client’s skill installer.

  • skills/typescript-unit-testing

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/typescript-unit-testing

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
50 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
a2e5dc7a372cbf9cd9255ca9ce3e743232e359c2cdc8122f12424d5d0ef60342
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills