Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 991 Bytes

File metadata and controls

34 lines (26 loc) · 991 Bytes
layout page-api
title QUnit.config.notrycatch
excerpt Disable handling of uncaught exceptions during tests.
groups
config
redirect_from
/config/notrycatch/
version_added 1.0.0

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.