Stuff
This commit is contained in:
@@ -26,15 +26,12 @@ make logs-backend
|
||||
# Run migrations
|
||||
make migrate
|
||||
|
||||
# Run tests
|
||||
make test
|
||||
```
|
||||
|
||||
## Available Commands (Containerized)
|
||||
|
||||
**From project root:**
|
||||
- `make start` - Build and start all services (production)
|
||||
- `make test` - Run tests in containers
|
||||
- `make migrate` - Run database migrations
|
||||
- `make logs-backend` - View backend logs
|
||||
- `make shell-backend` - Open shell in backend container
|
||||
@@ -43,8 +40,9 @@ make test
|
||||
- `npm run build` - Build for production
|
||||
- `npm start` - Run production build
|
||||
- `npm test` - Run all tests
|
||||
- `npm run test:feature --feature=vehicles` - Test specific feature
|
||||
- `npm test -- features/vehicles` - Alternative: Test specific feature by path pattern
|
||||
- `npm test -- features/vehicles` - Test specific feature
|
||||
- `npm test -- features/vehicles/tests/unit` - Test specific test type
|
||||
- `npm run test:watch` - Run tests in watch mode
|
||||
- `npm run schema:generate` - Generate combined schema
|
||||
|
||||
## Core Modules
|
||||
@@ -91,7 +89,7 @@ features/vehicles/
|
||||
└── vehicles.service.test.ts
|
||||
```
|
||||
|
||||
Run tests:
|
||||
Run tests (inside container via `make shell-backend`):
|
||||
```bash
|
||||
# All tests
|
||||
npm test
|
||||
@@ -99,8 +97,17 @@ npm test
|
||||
# Specific feature
|
||||
npm test -- features/vehicles
|
||||
|
||||
# Unit tests for specific feature
|
||||
npm test -- features/vehicles/tests/unit
|
||||
|
||||
# Integration tests for specific feature
|
||||
npm test -- features/vehicles/tests/integration
|
||||
|
||||
# Watch mode
|
||||
npm run test:watch
|
||||
|
||||
# With coverage
|
||||
npm test -- features/vehicles --coverage
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
Reference in New Issue
Block a user