Runner

module:Runner

Source:

Expose Runner.

Members

(inner) EventEmitter

Source:

Module dependencies.

(inner) globals

Source:

Non-enumerable globals.

Methods

(inner) cleanSuiteReferences(suite)

Source:

Cleans up the references to all the deferred functions
(before/after/beforeEach/afterEach) and tests of a Suite.
These must be deleted otherwise a memory leak can happen,
as those functions may reference variables from closures,
thus those variables can never be garbage collected as long
as the deferred functions exist.

Parameters:
NameTypeDescription
suiteSuite

(inner) extraGlobals() → {Array}

Source:

Array of globals dependent on the environment.

Returns:
Type
Array

(inner) filterLeaks(ok, globals) → {Array}

Source:

Filter leaks with the given globals flagged as ok.

Parameters:
NameTypeDescription
okArray
globalsArray
Returns:
Type
Array

(inner) filterOnly(suite) → {Boolean}

Source:

Filter suites based on isOnly logic.

Parameters:
NameTypeDescription
suiteArray
Returns:
Type
Boolean

(inner) hasOnly(suite) → {Boolean}

Source:

Determines whether a suite has an only test or suite as a descendant.

Parameters:
NameTypeDescription
suiteArray
Returns:
Type
Boolean