spurrin-cleaned-backend-dev/tests/unit/README.md
rohitgir-879 dc39677783 v1.0.0-rc
2025-06-12 00:19:44 +05:30

18 lines
477 B
Markdown

# Unit Tests
This directory contains unit tests for the application. Unit tests should:
- Test individual functions and methods in isolation
- Mock external dependencies
- Be fast and reliable
- Cover edge cases and error conditions
## Structure
- `controllers/` - Tests for controller functions
- `services/` - Tests for service layer functions
- `utils/` - Tests for utility functions
- `models/` - Tests for database models
## Running Tests
```bash
npm run test:unit
```