Closed twolfson closed 11 years ago
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.
Released in 2.3.0
.
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?