jbrumwell / mock-knex

A mock knex adapter for simulating a database during testing
MIT License
240 stars 71 forks source link

consider removing the knex version limitation #109

Open SamMaxwell opened 4 years ago

SamMaxwell commented 4 years ago

I have been using (and very much enjoying) mock-knex for many months.

But I am frustrated that it has often prevented me from staying up-to-date with knex.

I would accept a mocking library that isn't immediately up-to-date with any new classes/methods that the library it mocks releases at any given moment. I would know it immediately when I use a some brand new knex feature that there may not be a mock for it.

But when my code hasn't changed at all and I simply want to upgrade to latest knex, that I cannot test ANYTHING in my code that uses knex. So for now I just stay a few versions back and wait for mock-knex to catch up.

Unless this changes, the day may come when I (very reluctantly) am forced to remove mock-knex.

I hope that day never comes.

SamMaxwell commented 4 years ago

mock-knex is now 7 releases behind knex. the tail is wagging the dog. does anyone else have an opinion on this matter? is this repo going dead?

jbrumwell commented 4 years ago

@SamMaxwell not sure I understand, knex version is 0.20.4 and we currently support that version.

SamMaxwell commented 4 years ago

@jbrumwell that is good news, but npm shows this ... image

jbrumwell commented 4 years ago

@SamMaxwell Thank you for pointing that out I'll update the readme

felixmosh commented 3 years ago

Try knex-mock-client, it is not bound to a specific knex version.

I've developed it since this lib doesn't progresses with knex fast enough.