Preferences

By faking the DB I meant either running a local, prefilled fake DB server for every test or faking the interface to the DB.

Which one you should do depends on how complex your interactions with the DB are.

Some apps (e.g. CRUD) have half of their business logic encoded in DB queries in which case faking the calls is a bad idea.

Others only do, like, 2 simple queries. In this case there's no point running an actual database outside of a couple of E2E tests.


Yup then I'm with you

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal