jbrumwell / mock-knex

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

Support for knex 0.14.0 #75

Closed victorperin closed 6 years ago

victorperin commented 6 years ago

Tried testing with new knex version and received this:

Error: Unable to locate version: 0.14.0
      at MockKnex._extractVersion (node_modules/mock-knex/dist/index.js:65:15)
      at MockKnex._setAdapter (node_modules/mock-knex/dist/index.js:87:24)
      at MockKnex.unmock (node_modules/mock-knex/dist/index.js:116:12)
      at Context.afterEach (tests/tests-initializer.js:23:25)

Knex 0.14.0 changelog: http://knexjs.org/#changelog

I don't know muck about your project, but I'll try to learn and update. Any help is aways accepted :)

Fix ingaia/integration#142

victorperin commented 6 years ago

PS: thanks for the awasome lib :)

g-bastianelli commented 6 years ago

juste create un folder 0.14 in platform/knex with the index.js of the 0.13 seems to resole the issue.

victorperin commented 6 years ago

I tried it, but step in some kind of bug. But I didn't documented anything, I'll retry.

jbrumwell commented 6 years ago

Should be resolved in 0.4.0 just published it let me know if not :)

victorperin commented 6 years ago

Thank you, gonna run those tests! :)

victorperin commented 6 years ago

All tests on my project seems to work! :tada: Thanks everyone for this fix. I really like this project.

Now I know a little more about it and will try to build some code on a near future.