Unit Testing with Transactions
Typically in our Unit Tests, we have something like...
Does Drizzle have a mechanism for getting access to the transaction without the anonymous function route? I'd prefer not to do the following in every test...
Especially when I have to throw in error handling because
What are others doing for unit testing?
Does Drizzle have a mechanism for getting access to the transaction without the anonymous function route? I'd prefer not to do the following in every test...
Especially when I have to throw in error handling because
tx.rollback() throws an Error and doesn't simply rollback.What are others doing for unit testing?