You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for sharing this module.
I'm writing tests for Datasource extending it and I've found the cache getting in the way.
I'm mocking knex using jest-mock-knex to return different responses.
The challenge is the query is the same, therefore the key in the cache is the same and the object is returned.
I've tried passing .cache(0) so as to prevent caching at all but this did not work.
Please advise. If there is a potential change in the module needed, I would be glad to collaborate with a PR.
Thanks
The text was updated successfully, but these errors were encountered:
Thank you for sharing this module.
I'm writing tests for Datasource extending it and I've found the cache getting in the way.
I'm mocking knex using jest-mock-knex to return different responses.
The challenge is the query is the same, therefore the key in the cache is the same and the object is returned.
I've tried passing .cache(0) so as to prevent caching at all but this did not work.
Please advise. If there is a potential change in the module needed, I would be glad to collaborate with a PR.
Thanks
The text was updated successfully, but these errors were encountered: