Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 962 Bytes

File metadata and controls

33 lines (26 loc) · 962 Bytes
layout page-api
title QUnit.config.noglobals
excerpt Check the global object after each test and report new properties as failures.
groups
config
redirect_from
/config/noglobals/
version_added 1.0.0

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 helps you make sure the code under test doesn't accidentally leak or declare any global variables.

This option can also be controlled via the HTML Reporter.