Removes all documents from stubbed collections, which is useful
when running multiple tests with different documents.
I've frequently found myself needing to reset the documents in a collection beforeEach test when testing different documents in different scenarios. Currently, the only way to do this is to restore, re-add and re-stub before every test, which seems like an antipattern.
Happy to get feedback, comments, or suggestions :)
Removes all documents from stubbed collections, which is useful when running multiple tests with different documents.
I've frequently found myself needing to reset the documents in a collection beforeEach test when testing different documents in different scenarios. Currently, the only way to do this is to restore, re-add and re-stub before every test, which seems like an antipattern.
Happy to get feedback, comments, or suggestions :)