File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,11 @@ export async function bootstrap(fixture: string, directory?: string) {
40
40
return cwd ;
41
41
}
42
42
43
- function findParentPath ( path : string , dirname : string ) : string | undefined {
44
- const rawFragments = path . split ( '/' ) ;
43
+ function findParentPath (
44
+ parentPath : string ,
45
+ dirname : string
46
+ ) : string | undefined {
47
+ const rawFragments = parentPath . split ( path . sep ) ;
45
48
46
49
const { matched, fragments} = rawFragments . reduceRight (
47
50
( { fragments, matched} , item ) => {
@@ -58,5 +61,5 @@ function findParentPath(path: string, dirname: string): string | undefined {
58
61
{ fragments : rawFragments , matched : false }
59
62
) ;
60
63
61
- return matched ? fragments . join ( '/' ) : undefined ;
64
+ return matched ? fragments . join ( path . sep ) : undefined ;
62
65
}
You can’t perform that action at this time.
0 commit comments