spurrin-backend/tests/unit/README.md
2025-06-09 11:11:52 +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
```