Hacker News new | ask | show | jobs
by simonw 1793 days ago
That's true: the one place where it's a good idea to mock the database is when you want to simulate what would happen if a specific database error occurred that can't be triggered another way.