Hacker News new | ask | show | jobs
by grey-area 2252 days ago
I use the db for some tests, it's totally fine, because it's limited to those tests which actually need db access (most don't). It's also closer to the actual application behaviour than mocks and doesn't need to be maintained.