What is the proper way to set the app and database in a clean state before each test (mocha it)?
For the web app, is Meteor.logout(...) sufficient? I am using puppeteer: is there a global state like LocalStorage that should be reset somehow?
For the database in particular, I am interested in removing all data, but keeping defined indexes. So I assume each collection needs a Collection.remove({}). What about Meteor-specific collections? What is the proper way to empty them? For instance, I need to remove all users. Is there a way to automate listing of all collections to simplify this reset routine?
“velocity” was the name of a Meteor-focused testing initiative back in the day. The group, xolv.io, was one of the main proponents and is the author of the package you mention. The initiative petered out before coming to fruition, and the efforts were absorbed by Meteor core.
By ignoring collections with that prefix, I assume it was going to be like a reserved keyword for collections internal to their tool, meant to persist across a test suite.