5 ms·
Thou shalt never mock the database, for thou shalt anger the database when thou moketh it. In all seriousness, I have found this to be a useful suggestion, bec
by never_inline 10mo ago
Thou shalt never mock the database, for thou shalt anger the database when thou moketh it.
In all seriousness, I have found this to be a useful suggestion, because the purpose of a test is to make sure invariants don't break in real code. When you mock the database, you're excluding large amounts of real code from test.