It is kind of sloppy of mocha to not isolate batches (even at the hookup/hookdown), do we want to instrument and tweak this to use a chain style?
It looks like there is a problem in doubleshot, not mocha, with respect to the top level batches. This test proves that mocha does not have cross-contamination.
Cross contamination still exists but you need to be quite aggressive with your this fallbacks to get it.
I think it would be very much appropriate. It seems to even span across multiple files but is very non-intuitive.
Arguing myself into this; it is necessary for modular code. We must enforce the module pattern at the batch level as it is expected behavior. If people try to break out, let them use the global scope on their own terms.
Migrating tests from mocha fork in #5
Rough draft working which patches #5. Not sure this is ideal and stil…
…l second guessing against `mocha` not doing this
Released in 2.3.0.