You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
This repository contains a comprehensive guide and examples for Node.js testing best practices, focusing on integration/component testing. It includes both educational content and a practical example application that demonstrates modern testing techniques.
8
+
9
+
## Commands
10
+
11
+
### Testing
12
+
-`npm test` - Run Jest tests (default test runner)
13
+
-`npm run test:vitest` - Run Vitest tests (alternative test runner)
14
+
-`npm run test:dev` - Run Jest in watch mode with optimized settings (2 workers, silent)
15
+
-`npm run test:dev:debug` - Run Jest in debug mode with inspector on port 9229
16
+
-`npm run test:dev:verbose` - Run Jest in watch mode with verbose output
17
+
-`npm run test:nestjs` - Run NestJS-specific tests
18
+
19
+
### Database
20
+
-`npm run db:migrate` - Run database migrations (uses Sequelize CLI)
21
+
-`npm run db:seed` - Seed database with initial data
22
+
23
+
### Code Quality
24
+
-`npm run lint` - Run ESLint on the codebase
25
+
26
+
## Architecture
27
+
28
+
### Example Application Structure
29
+
The repository contains an example Node.js application demonstrating testing best practices:
30
+
31
+
-**Entry Points** (`example-application/entry-points/`): API server (Express.js) and message queue consumer
32
+
-**Business Logic** (`example-application/business-logic/`): Core order service logic
33
+
-**Data Access** (`example-application/data-access/`): Database repository layer with Sequelize ORM
0 commit comments