mock-knex icon indicating copy to clipboard operation
mock-knex copied to clipboard

consider removing the knex version limitation

Open SamMaxwell opened this issue 6 years ago • 5 comments

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 avatar Nov 06 '19 16:11 SamMaxwell

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?

SamMaxwell avatar Jan 09 '20 17:01 SamMaxwell

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

jbrumwell avatar Jan 09 '20 17:01 jbrumwell

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

SamMaxwell avatar Jan 09 '20 19:01 SamMaxwell

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

jbrumwell avatar Jan 09 '20 20:01 jbrumwell

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.

felixmosh avatar May 15 '21 14:05 felixmosh