@@ -93,7 +93,7 @@ describe('react server components', function () {
93
93
assert . equal ( result . type . $$name , 'Client' ) ;
94
94
assert . equal ( typeof result . type . $$id , 'string' ) ;
95
95
assert . deepEqual ( result . type . $$bundles , [
96
- path . relative ( bundles [ 1 ] . target . distDir , bundles [ 1 ] . filePath ) ,
96
+ path . posix . relative ( bundles [ 1 ] . target . distDir , bundles [ 1 ] . filePath ) ,
97
97
] ) ;
98
98
} ) ;
99
99
@@ -668,7 +668,8 @@ describe('react server components', function () {
668
668
) ;
669
669
assert . equal (
670
670
link . props . href ,
671
- '/' + path . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
671
+ '/' +
672
+ path . posix . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
672
673
) ;
673
674
} ) ;
674
675
@@ -730,7 +731,8 @@ describe('react server components', function () {
730
731
) ;
731
732
assert . equal (
732
733
link . props . href ,
733
- '/' + path . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
734
+ '/' +
735
+ path . posix . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
734
736
) ;
735
737
} ) ;
736
738
@@ -792,7 +794,8 @@ describe('react server components', function () {
792
794
) ;
793
795
assert . equal (
794
796
link . props . href ,
795
- '/' + path . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
797
+ '/' +
798
+ path . posix . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
796
799
) ;
797
800
} ) ;
798
801
@@ -862,7 +865,7 @@ describe('react server components', function () {
862
865
let entryBundle = b . getBundles ( ) [ 2 ] ;
863
866
assert . equal (
864
867
res . output . Server . bootstrapScript ,
865
- `Promise.all([import("/${ path . relative (
868
+ `Promise.all([import("/${ path . posix . relative (
866
869
entryBundle . target . distDir ,
867
870
entryBundle . filePath ,
868
871
) } ")]).then(()=>${ parcelRequireName } ("${ b . getAssetPublicId (
@@ -934,7 +937,7 @@ describe('react server components', function () {
934
937
assert . equal ( typeof result . props . children [ 1 ] . type . $$id , 'string' ) ;
935
938
let jsBundle = b . getBundles ( ) [ 1 ] ;
936
939
assert . deepEqual ( result . props . children [ 1 ] . type . $$bundles , [
937
- path . relative ( jsBundle . target . distDir , jsBundle . filePath ) ,
940
+ path . posix . relative ( jsBundle . target . distDir , jsBundle . filePath ) ,
938
941
] ) ;
939
942
940
943
let link = result . props . children [ 0 ] ;
@@ -948,7 +951,8 @@ describe('react server components', function () {
948
951
) ;
949
952
assert . equal (
950
953
link . props . href ,
951
- '/' + path . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
954
+ '/' +
955
+ path . posix . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
952
956
) ;
953
957
} ) ;
954
958
@@ -1011,7 +1015,8 @@ describe('react server components', function () {
1011
1015
) ;
1012
1016
assert . equal (
1013
1017
link . props . href ,
1014
- '/' + path . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
1018
+ '/' +
1019
+ path . posix . relative ( cssBundle . target . distDir , cssBundle . filePath ) ,
1015
1020
) ;
1016
1021
} ) ;
1017
1022
} ,
0 commit comments