Knex recently upgraded from 0.21 to 0.95 and they did a major refactoring with breaking changes.
It seems mock-knex needs to be updated to take some of those changes into account, or at least find its version, as for now our tests all end up with Unable to locate version: 0.95.1 on the mockKnex.mock(connection); line after upgrading knex to 0.95.1.
Knex recently upgraded from 0.21 to 0.95 and they did a major refactoring with breaking changes.
It seems mock-knex needs to be updated to take some of those changes into account, or at least find its version, as for now our tests all end up with
Unable to locate version: 0.95.1
on themockKnex.mock(connection);
line after upgrading knex to 0.95.1.cf https://github.com/knex/knex/blob/master/CHANGELOG.md for specific changes list