Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This 100%. I'm not sure how the author managed to create consistent failure cases using real service dependencies, but in my code I find mocks to be the easiest way to test error scenarios.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: