@@ -6,7 +6,7 @@ describe.skip("formatProgress", () => {
66 const bigArray = Array . from ( { length : 1000 } , ( _ , i ) => i ) ;
77 const progressId = "visual-test" ;
88
9- console . log ( "\n=== Processing 1000 items ===\n" ) ;
9+ console . info ( "\n=== Processing 1000 items ===\n" ) ;
1010
1111 for ( let i = 0 ; i < bigArray . length ; i ++ ) {
1212 // Simulate some work to make timing realistic
@@ -25,33 +25,33 @@ describe.skip("formatProgress", () => {
2525 i === 999
2626 ) {
2727 const progress = formatProgress ( i , bigArray . length , { progressId } ) ;
28- console . log ( `Item ${ i } : ${ progress } ` ) ;
28+ console . info ( `Item ${ i } : ${ progress } ` ) ;
2929 }
3030 }
3131
32- console . log ( "\n=== Complete! ===\n" ) ;
32+ console . info ( "\n=== Complete! ===\n" ) ;
3333 } ) ;
3434
3535 it ( "visual test without progressId (no time estimation)" , ( ) => {
3636 const bigArray = Array . from ( { length : 100 } , ( _ , i ) => i ) ;
3737
38- console . log ( "\n=== Without time estimation ===\n" ) ;
38+ console . info ( "\n=== Without time estimation ===\n" ) ;
3939
4040 for ( let i = 0 ; i < bigArray . length ; i ++ ) {
4141 if ( i % 25 === 0 || i === 99 ) {
4242 const progress = formatProgress ( i , bigArray . length ) ;
43- console . log ( `Item ${ i } : ${ progress } ` ) ;
43+ console . info ( `Item ${ i } : ${ progress } ` ) ;
4444 }
4545 }
4646
47- console . log ( "\n=== Complete! ===\n" ) ;
47+ console . info ( "\n=== Complete! ===\n" ) ;
4848 } ) ;
4949
5050 it ( "visual test with multiple concurrent progress trackers" , async ( ) => {
5151 const array1 = Array . from ( { length : 100 } , ( _ , i ) => i ) ;
5252 const array2 = Array . from ( { length : 50 } , ( _ , i ) => i ) ;
5353
54- console . log ( "\n=== Processing multiple arrays concurrently ===\n" ) ;
54+ console . info ( "\n=== Processing multiple arrays concurrently ===\n" ) ;
5555
5656 for ( let i = 0 ; i < Math . max ( array1 . length , array2 . length ) ; i ++ ) {
5757 await sleep ( 1 ) ;
@@ -60,17 +60,17 @@ describe.skip("formatProgress", () => {
6060 const progress = formatProgress ( i , array1 . length , {
6161 progressId : "array1" ,
6262 } ) ;
63- console . log ( `Array 1, Item ${ i } : ${ progress } ` ) ;
63+ console . info ( `Array 1, Item ${ i } : ${ progress } ` ) ;
6464 }
6565
6666 if ( i < array2 . length && i % 10 === 0 ) {
6767 const progress = formatProgress ( i , array2 . length , {
6868 progressId : "array2" ,
6969 } ) ;
70- console . log ( `Array 2, Item ${ i } : ${ progress } ` ) ;
70+ console . info ( `Array 2, Item ${ i } : ${ progress } ` ) ;
7171 }
7272 }
7373
74- console . log ( "\n=== Complete! ===\n" ) ;
74+ console . info ( "\n=== Complete! ===\n" ) ;
7575 } ) ;
7676} ) ;
0 commit comments