QUnit.config.noglobals

version added: 1.0.0

Description

Check the global object after each test and report new properties as failures.

type boolean
default false

Enable this option to let QUnit keep track of which global variables and properties exist on the global object (e.g. window in browsers). When new global properties are found, they will result in test failures to you make sure your application and your tests are not leaking any state.

This option can also be controlled via the HTML Reporter interface.