create-e2e-test

Installation
SKILL.md

Create Test

Create test file for a module. Module name: $ARGUMENTS

Test File Locations

  • Controller/service tests: apps/core/test/src/modules/<module-name>/<module-name>.controller.spec.ts
  • Repository tests (with real PG): apps/core/test/src/modules/<module-name>/<module-name>.repository.spec.ts

Test Pattern 1: Unit Test with Mocked Dependencies

For testing controllers, services, or business logic without a real database:

import { Test } from '@nestjs/testing'
import { beforeEach, describe, expect, it, vi } from 'vitest'

import { <Name>Controller } from '~/modules/<name>/<name>.controller'
import { <Name>Service } from '~/modules/<name>/<name>.service'
Installs
3
Repository
mx-space/core
GitHub Stars
554
First Seen
Mar 29, 2026
create-e2e-test — mx-space/core