-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something like cache problem #128
Comments
Actually, from what I can see |
In the log, we can see connection (caller TestDbHelper.connect), after this, my test that calls I tested that flow without rewiremock (using conditionals with |
Sorry. The actual test is not visible to me and there is no way I can help here:
|
Hi!
I'm mocking mongodb in my mocha tests with rewiremock and mongo-mock. I can rewire my wrapper that contains the mongo lib, but when another module calls that file, it doesn't have the started configuration like database, collections... I think it's something like cached modules, but I don't know what to do anymore.
I have:
common.js
dbHelper.js
lib/mongo.js
When the feature that is being tested calls
getCollection
,this.client
isundefined
and all will fail.Can you help me?
The text was updated successfully, but these errors were encountered: