@@ -302,17 +302,15 @@ HOOK: BCD1 @ B after`;
302302 // https://nodejs.org/docs/v14.0.0/api/v8.html#v8_v8_getheapsnapshot
303303 // Created in Node 11.x, but starts working the way we need from Node 14.
304304 if ( semver . gte ( process . versions . node , '14.0.0' ) ) {
305- QUnit . test ( 'callbacks and hooks from modules are properly released for garbage collection ' , async assert => {
306- const command = [ 'node' , '--expose-gc' , '../../../bin/qunit.js' , 'memory-leak/* .js' ] ;
305+ QUnit . test ( 'memory-leak/module-closure [unfiltered] ' , async assert => {
306+ const command = [ 'node' , '--expose-gc' , '../../../bin/qunit.js' , 'memory-leak/module-closure .js' ] ;
307307 const execution = await execute ( command ) ;
308-
309308 assert . equal ( execution . snapshot , getExpected ( command ) ) ;
310309 } ) ;
311310
312- QUnit . test ( 'callbacks and hooks from filtered-out modules are properly released for garbage collection ' , async assert => {
313- const command = [ 'node' , '--expose-gc' , '../../../bin/qunit.js' , '--filter' , '!child' , 'memory-leak/* .js' ] ;
311+ QUnit . test ( 'memory-leak/module-closure [ filtered module] ' , async assert => {
312+ const command = [ 'node' , '--expose-gc' , '../../../bin/qunit.js' , '--filter' , '!child' , 'memory-leak/module-closure .js' ] ;
314313 const execution = await execute ( command ) ;
315-
316314 assert . equal ( execution . snapshot , getExpected ( command ) ) ;
317315 } ) ;
318316 }
0 commit comments