mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add ensureDir/Sync support to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
af48b7de5f
commit
8409d56fdf
2 files changed
+14
No files matched your search
@@ -21,6 +21,8 @@ const fsInjectable = getInjectable({
|
||||
rm,
|
||||
access,
|
||||
},
|
||||
ensureDir,
|
||||
ensureDirSync,
|
||||
readFileSync,
|
||||
readJson,
|
||||
writeJson,
|
||||
@@ -48,6 +50,8 @@ const fsInjectable = getInjectable({
|
||||
rm,
|
||||
access,
|
||||
copy: copy as (src: string, dest: string, options?: fse.CopyOptions) => Promise<void>,
|
||||
ensureDir: ensureDir as (path: string, options?: number | fse.EnsureOptions ) => Promise<void>,
|
||||
ensureDirSync,
|
||||
};
|
||||
},
|
||||
causesSideEffects: true,
|
||||
|
||||
Reference in new issue
Block a user