api-test-unit

Installation
SKILL.md

Unit Tests

Purpose

Generate unit tests using Jest with proper mocking of dependencies, AAA pattern (Arrange-Act-Assert), and descriptive test names.

Why Jest Instead of node:test?

This repository uses Jest for ALL testing instead of Node.js's built-in node:test runner:

  • Issue: nestjs/nest#14130 - NestJS @nestjs/testing is incompatible with node:test
  • Impact: node:test cannot properly inject QueryBus, CommandBus, or other NestJS providers
  • Solution: Jest provides full compatibility with NestJS's testing utilities and DI system

When to Use

Installs
1
GitHub Stars
1
First Seen
Mar 12, 2026
api-test-unit — rimthan-lab/rimthan-plugins