QUnit.config.notrycatch

version added: 1.0.0.

Description

Disable handling of uncaught exceptions during tests.

type boolean
default false

This option can also be controlled via the HTML Reporter interface, and is supported as URL query parameter.

By default, QUnit handles uncaught errors during test execution and reports them as test failures. This allows reporters to reliably summarise results.

Enabling this flag will disable this error handling, allowing your error to become a “native” uncaught exception and thus interrupt QUnit. This can sometimes ease debugging through a browser’s developer tools, such as when dealing with breakpoints, or source maps.