Closed chadoh closed 3 years ago
We can come back to this if someone complains about this broken edge case. I don't want to complicate our main test file, which is currently used as much for teaching good practices as it is for actually testing. This way of testing is not a good practice!
So until someone complains, our recommendation is to pass the whole runner
around, rather than just runner.run
.
This now works:
Previously, the
run
function in the context oftestSomething
would not havethis
defined, and confusing errors would be thrown like: