denodb icon indicating copy to clipboard operation
denodb copied to clipboard

Mocking DenodB, how to do this correctly? Please provide documentation

Open flemux opened this issue 4 years ago • 1 comments

This isn't an issue as such, but there is no documentation on how to correctly implement automated tests for an application using denoDb.

I'm fairly new to testing, but all I want to run my tests without connecting to an actual database, it would nice to have something in the documentation detailing, or at least referencing good practice for writing automated tests for a Deno application using denoDb.

I'm coming up with my own solution which I'll post here once it works, but I'm a bit of a newbie, so it's like not the correct way.

flemux avatar Jan 13 '21 14:01 flemux

Hi Fred,

Very good point you're making here.

I wonder how other libraries are dealing with this. I found this one library for sequelize and it seems quite a big project on its own.

Do you have any idea how you would actually want it to work? I think that if we start from the use case itself, then we can come up with a good API for it.

Let me know!

eveningkid avatar Jan 17 '21 21:01 eveningkid