Typescript Unit Testing

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.

bmad-labs Updated

File contents

bmad-labs/skills/tree/main/skills/typescript-unit-testing commit cb45758260

Frequently asked questions

npx skillmds@latest add bmad-labs/typescript-unit-testing