[Testee] Stop on fail



We currently have a testee setup (using Qunit) like:

const testPromise = testee.test([

And I would like to know if there’s any way to stop the testee execution if any of the tests fail.

I know that we can achieve it for a single QUnit suite with something like:

QUnit.testDone(function (details) {
if (details.failed > 0) {
QUnit.config.queue.length = 0;

But if I assign this to a single suite I assume that others will still run.
The main idea is to stop test execution as a whole.

Is it possible using testee configuration?

Thank you guys!