jbrumwell / mock-knex

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

adjustments to knex 0.95 required #123

Closed mlarcher closed 3 years ago

mlarcher commented 3 years ago

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.

cf https://github.com/knex/knex/blob/master/CHANGELOG.md for specific changes list

wa11a commented 3 years ago

Having the same problem: Error: Unable to locate version: 0.95.3

PhakornKiong commented 3 years ago

Having the same problem: Unable to locate version: 0.95.4