forked from rohit/spurrin-backend
18 lines
477 B
Markdown
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
|
|
``` |