SAF
PPrisma
•Created by SAF on 4/30/2025 in #help-and-questions
What's the purpose of this unit test?
I'm looking into testing database operations so I'm reading this blog post on unit testing.
The first unit test written is this:
which tests this function:
But I don't get what this is supposed to test.
upsertTags
is one big transaction. So when you mock a transaction's return value and later test the mock, how does that test the behavior of the function in any way?4 replies