Sharing pragmatic tech tips & exploring AI-powered development workflows.
Let's build better software together! 🚀
For me, it was to have content prepared in advanced
For me, it was to have content prepared in advanced
Nothing wrong with it, because render on server is faster
Nothing wrong with it, because render on server is faster
- Unit tests: mock DataService
- E2E: use TestDatabaseService with Fishery
- No need to mock individual repositories
- Clean, reusable test data
- Unit tests: mock DataService
- E2E: use TestDatabaseService with Fishery
- No need to mock individual repositories
- Clean, reusable test data
1. Base Repository - shared database operations
2. Entities - database structure
3. DataService - single entry point
4. Factories - test data generation
1. Base Repository - shared database operations
2. Entities - database structure
3. DataService - single entry point
4. Factories - test data generation
Create a data-access module that:
• Acts as a single source of truth
• Handles all database operations
• Provides clean testing interfaces
• Manages multiple databases
Create a data-access module that:
• Acts as a single source of truth
• Handles all database operations
• Provides clean testing interfaces
• Manages multiple databases