@@ -446,30 +446,6 @@ describe('Loader hooks', { concurrency: !process.env.TEST_PARALLEL }, () => {
446446 } ) ;
447447 } ) ;
448448
449- describe ( 'globalPreload' , ( ) => {
450- it ( 'should emit warning' , async ( ) => {
451- const { stderr } = await spawnPromisified ( execPath , [
452- '--experimental-loader' ,
453- 'data:text/javascript,export function globalPreload(){}' ,
454- '--experimental-loader' ,
455- 'data:text/javascript,export function globalPreload(){return""}' ,
456- fixtures . path ( 'empty.js' ) ,
457- ] ) ;
458-
459- assert . strictEqual ( stderr . match ( / ` g l o b a l P r e l o a d ` h a s b e e n r e m o v e d ; u s e ` i n i t i a l i z e ` i n s t e a d / g) . length , 1 ) ;
460- } ) ;
461-
462- it ( 'should not emit warning when initialize is supplied' , async ( ) => {
463- const { stderr } = await spawnPromisified ( execPath , [
464- '--experimental-loader' ,
465- 'data:text/javascript,export function globalPreload(){}export function initialize(){}' ,
466- fixtures . path ( 'empty.js' ) ,
467- ] ) ;
468-
469- assert . doesNotMatch ( stderr , / ` g l o b a l P r e l o a d ` h a s b e e n r e m o v e d ; u s e ` i n i t i a l i z e ` i n s t e a d / ) ;
470- } ) ;
471- } ) ;
472-
473449 it ( 'should be fine to call `process.removeAllListeners("beforeExit")` from the main thread' , async ( ) => {
474450 const { code, signal, stdout, stderr } = await spawnPromisified ( execPath , [
475451 '--no-warnings' ,
0 commit comments