jbrumwell / mock-knex

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

Mocking fails for knex@0.17-next3 #85

Closed mortimr closed 5 years ago

mortimr commented 5 years ago

Hi,

New version 0.17 has been released by knex and isn't part of the whitelisted plateform versions.

Getting this error on tests

    Unable to locate version: 0.17.0-next3
jbrumwell commented 5 years ago

Next releases can be a moving target, once it is released stable we can implement mocking for it :)

skubot commented 5 years ago

Hi @jbrumwell I had an issue with Knex 0.16.6-oracle-fix

would changing ./src/index.js line 15;

const knexVersion = knexPackage.version;

to

const knexVersion = knexPackage.version.split('-').shift();

fix the issue? I tried that and it worked.

Anyway... at the moment I've rolled back to Knex v0.16.5