File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/create-cli/src/lib/setup Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import { createTree } from './virtual-fs.js';
44
55function createMockFs (
66 files : Record < string , string > = { } ,
7- ) : FileSystemAdapter & { written : Map < string , string > ; dirs : string [ ] } {
7+ ) : FileSystemAdapter & { written : Map < string , string > ; dirs : Set < string > } {
88 const store = new Map ( Object . entries ( files ) ) ;
99 const written = new Map < string , string > ( ) ;
10- const dirs : string [ ] = [ ] ;
10+ const dirs = new Set < string > ( ) ;
1111
1212 return {
1313 written,
@@ -26,9 +26,8 @@ function createMockFs(
2626 async exists ( path : string ) {
2727 return store . has ( toUnixPath ( path ) ) ;
2828 } ,
29- async mkdir ( _path : string , _options : { recursive : boolean } ) {
30- // eslint-disable-next-line functional/immutable-data
31- dirs . push ( toUnixPath ( _path ) ) ;
29+ async mkdir ( path : string ) : Promise < undefined > {
30+ dirs . add ( toUnixPath ( path ) ) ;
3231 } ,
3332 } ;
3433}
You can’t perform that action at this time.
0 commit comments