I would propose to move this var to the scope where it is used, the function passed to `runNextTest()`. Otherwise code readers might misassume that `testResults` is filled all over the place.
Or would was your motivation to declare it here?