@@ -5,7 +5,7 @@ import path from "path";
55
66// Import Third-party Dependencies
77import test from "tape" ;
8- import split from "split2" ;
8+ import splitByLine from "split2" ;
99
1010// CONSTANTS
1111const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
@@ -15,15 +15,15 @@ test("summary should execute summary command on fixtures 'result-test1.json'", a
1515 const lines = [
1616 / G l o b a l S t a t s : e x p r e s s .* $ / ,
1717 / .* / ,
18- / T o t a l o f p a c k a g e s : .* 6 0 .* $ / ,
19- / T o t a l s i z e : .* 1 .5 9 M B .* $ / ,
18+ / T o t a l o f p a c k a g e s : .* 6 5 .* $ / ,
19+ / T o t a l s i z e : .* 1 .6 2 M B .* $ / ,
2020 / P a c k a g e s w i t h i n d i r e c t d e p e n d e n c i e s : .* 6 .* $ / ,
2121 / .* / ,
2222 / E x t e n s i o n s : .* $ / ,
23- / \( 5 2 \) \. m d - \( 5 2 \) \. j s - \( 5 0 \) { 2 } - \( 5 2 \) \. j s o n - \( 5 \) \. t s - \( 1 \) \. y m l .* $ / ,
23+ / \( 4 8 \) { 2 } - \( 5 0 \) \. m d - \( 5 0 \) \. j s o n - \( 5 0 \) \. j s - \( 5 \) \. t s - \( 2 \) \. y m l .* $ / ,
2424 / .* / ,
2525 / L i c e n s e s : .* $ / ,
26- / \( 4 8 \) M I T - \( 1 \) B S D - 3 - C l a u s e - \( 3 \) I S C .* $ / ,
26+ / \( 4 7 \) M I T - \( 2 \) I S C .* $ / ,
2727 / .* /
2828 ] ;
2929 tape . plan ( lines . length * 2 ) ;
@@ -36,7 +36,7 @@ test("summary should execute summary command on fixtures 'result-test1.json'", a
3636 } ) ;
3737 tape . teardown ( ( ) => child . kill ( ) ) ;
3838
39- const rStream = child . stdout . pipe ( split ( ) ) ;
39+ const rStream = child . stdout . pipe ( splitByLine ( ) ) ;
4040 for await ( const line of rStream ) {
4141 const regexp = lines . shift ( ) ;
4242
0 commit comments