QUnit.config.ignoreUnhandledRejections

version added: 2.26.0.

Description

QUnit catches uncaught errors, including in the global scope or otherwise outside the test function, and reports these as test failures.

Since QUnit 2.5.0 it also detects rejected Promises that have no “catch” or other rejection handler, via window.onunhandledrejection.

You can turn this off by setting QUnit.config.ignoreUnhandledRejections = true;.

type boolean
default false

See also