-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] HTML mode: QUnit.config.noglobals with coverage enabled (#223)
Code instrumented by istanbul introduces global variables (cov_* for each file and a global `__coverage__` variable). This causes a failure when the "noglobals" QUnit config is active and some file is loaded during a test as this pollutes the global namespace. Hooking into the "after" function allows to add those variables to the list of known globals so that they won't be detected as new globals.
- Loading branch information
Showing
2 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters