File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed 
__tests__/volume/__snapshots__ Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11//  Jest Snapshot v1, https://goo.gl/fbAQLP
22
3- exports [` mkdirSync throws when creating root directory 1`  ] =  ` "EISDIR: illegal operation on a directory, mkdir"`  ;
3+ exports [` mkdirSync throws when creating root directory 1`  ] =  ` "EISDIR: illegal operation on a directory, mkdir '/' "`  ;
44
55exports [` mkdirSync throws when re-creating existing directory 1`  ] =  ` "EEXIST: file already exists, mkdir '/new-dir'"`  ;
Original file line number Diff line number Diff line change @@ -1771,7 +1771,7 @@ export class Volume {
17711771
17721772    // This will throw if user tries to create root dir `fs.mkdirSync('/')`. 
17731773    if  ( ! steps . length )  { 
1774-       throwError ( EISDIR ,  'mkdir' ) ; 
1774+       throwError ( EISDIR ,  'mkdir' ,   filename ) ; 
17751775    } 
17761776
17771777    const  dir  =  this . getLinkParentAsDirOrThrow ( filename ,  'mkdir' ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments