Runner.stop Method

Stops all the pending test tasks.

async stop()

You can also cancel a 'runner.run' promise to stop an individual pending task.