Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Writing Good Unit Tests; Don’t Mock Database Connections (boot.dev)
7 points by wagslane on April 21, 2022 | hide | past | favorite | 2 comments


  We don’t need to write a test that tests this function as a whole, we can test the parts we care about independently.
What could possibly go wrong :)


Well this is about unit tests - you should probably write an integration test for that.




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

Search: