Mocking drizzle

Hello

I am having such a hard time to mock drizzle for some unit tests, are there any official guides out there that I can take a look at?

I've tried

  • test containers (for integration tests, I know, its diff..), the issue here is that I'm using drizzle-orm/neon-serverless and this package talks through http and not TCP
  • tried to mock drizzle but I'm having a hard time due to the nature of the api
I have a hono api with 5 simple endpoints and I cannot test it due to the drizzle mocks, I'm sure other developers have faced this?
Was this page helpful?