Skip to content

Commit

Permalink
Test: Prevent global.QUnit leakage between node and browser tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed May 3, 2018
1 parent f25b1e6 commit 2e5b6e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/tasks/test-on-node.js
Expand Up @@ -36,6 +36,9 @@ module.exports = function( grunt ) {
grunt.log.writeln( "-----" );
grunt.log.ok( constructMessage( totals ) );

// Refresh the QUnit global to be used in other tests
global.QUnit = requireFresh( "../../dist/qunit" );

done( !error );
} );
} );
Expand Down

0 comments on commit 2e5b6e8

Please sign in to comment.