Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (23 loc) · 866 Bytes

File metadata and controls

27 lines (23 loc) · 866 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 option can also be controlled via the [HTML Reporter](../../intro.md#in-the-browser).