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

A mock knex adapter for simulating a database during testing

Results 23 mock-knex issues
Sort by recently updated
recently updated
newest added
trafficstars

Hi, I am having this issue when attempting to mock a transaction with multiple inserts. I have tried doing what is suggested here https://github.com/jbrumwell/mock-knex/issues/95 however it does not seem to...

bug
help wanted

Your readme file says: >especially useful when used in combination with fixture-factory. ... and then it doesn't seem to make any further mention of the library whatsoever. It seems like...

enhancement
documentation

Hi, thanks for a really useful library... I'm finding it really great for my current project. I was looking at the docs, and managed to write some demo tests for...

currently the most recent version sets lodash to ^4.14.2. Version 4.17.20 satisfies ^4.14.2 and causes issues with this package. "dependencies": { "bluebird": "^3.4.1", "lodash": "^4.14.2", "semver": "^5.3.0" } See these...

Hey, first of all thank you for this package. I was running my tests with mock-knex and after debugging some cases, I've realised that it's not very consistent that if...

I've been fiddling around for a few hours trying to figure out why the tracker was never called in my test. I tried reverting knex/mock-knex versions, using different versions of...

I'm using Bookshelf and trying to mock two different scenarios for a function which sets up an endpoint. The data passed into the function is the same for both scenarios;...

I was thinking that it would be a useful addition to add a .record() function, that would record the unmocked db calls and output the mock-knex code needed to mock...

enhancement

Hi All, Unfortunately I haven't had a need to utilize this package in years and am finding it difficult to maintain it the way it should be. If you are...

ref https://security.snyk.io/package/npm/semver