-
Type:
Improvement
-
Resolution: Gone away
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.6.0
-
Component/s: Testing
withClient requires that it either is bound to the scope's context or that it is passed a MongoClient, and when its passed a MongoClient the returned function must be called to run the rest of the test in the callback.
We should refactor this to be more intuitive or catch the error where the test never completes running. Or use async / await everywhere for this function.