@@ -350,8 +350,8 @@ describe('API', () => {
350350 let devServerPort ;
351351
352352 afterEach ( ( ) => {
353- process . env . WEBPACK_DEV_SERVER_BASE_PORT = undefined ;
354- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = undefined ;
353+ process . env . RSPACK_DEV_SERVER_BASE_PORT = undefined ;
354+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = undefined ;
355355
356356 return dummyServers
357357 . reduce (
@@ -372,7 +372,7 @@ describe('API', () => {
372372 } ) ;
373373
374374 function createDummyServers ( n ) {
375- process . env . WEBPACK_DEV_SERVER_BASE_PORT = 60000 ;
375+ process . env . RSPACK_DEV_SERVER_BASE_PORT = 60000 ;
376376
377377 return ( Array . isArray ( n ) ? n : [ ...new Array ( n ) ] ) . reduce (
378378 ( p , _ , i ) =>
@@ -400,7 +400,7 @@ describe('API', () => {
400400 it ( 'should return the port when the port is specified' , async ( ) => {
401401 const retryCount = 1 ;
402402
403- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = retryCount ;
403+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = retryCount ;
404404
405405 const freePort = await Server . getFreePort ( 9082 ) ;
406406
@@ -410,7 +410,7 @@ describe('API', () => {
410410 it ( 'should return the port when the port is `null`' , async ( ) => {
411411 const retryCount = 2 ;
412412
413- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = retryCount ;
413+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = retryCount ;
414414
415415 await createDummyServers ( retryCount ) ;
416416
@@ -449,7 +449,7 @@ describe('API', () => {
449449 it ( 'should return the port when the port is undefined' , async ( ) => {
450450 const retryCount = 3 ;
451451
452- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = retryCount ;
452+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = retryCount ;
453453
454454 await createDummyServers ( retryCount ) ;
455455
@@ -489,7 +489,7 @@ describe('API', () => {
489489 it ( 'should retry finding the port for up to defaultPortRetry times (number)' , async ( ) => {
490490 const retryCount = 4 ;
491491
492- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = retryCount ;
492+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = retryCount ;
493493
494494 await createDummyServers ( retryCount ) ;
495495
@@ -528,7 +528,7 @@ describe('API', () => {
528528 it ( 'should retry finding the port for up to defaultPortRetry times (string)' , async ( ) => {
529529 const retryCount = 5 ;
530530
531- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = retryCount ;
531+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = retryCount ;
532532
533533 await createDummyServers ( retryCount ) ;
534534
@@ -567,7 +567,7 @@ describe('API', () => {
567567 it ( 'should retry finding the port when serial ports are busy' , async ( ) => {
568568 const busyPorts = [ 60000 , 60001 , 60002 , 60003 , 60004 , 60005 ] ;
569569
570- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = 1000 ;
570+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = 1000 ;
571571
572572 await createDummyServers ( busyPorts ) ;
573573
@@ -611,7 +611,7 @@ describe('API', () => {
611611 ( ) => ( ) => Promise . reject ( new Error ( 'busy' ) ) ,
612612 ) ;
613613
614- process . env . WEBPACK_DEV_SERVER_PORT_RETRY = 1 ;
614+ process . env . RSPACK_DEV_SERVER_PORT_RETRY = 1 ;
615615
616616 const { RspackDevServer : Server } = require ( '@rspack/dev-server' ) ;
617617
0 commit comments