mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add fake access support
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
906172bc29
commit
f7c3657e60
@ -19,6 +19,7 @@ const fsInjectable = getInjectable({
|
||||
readdir,
|
||||
lstat,
|
||||
rm,
|
||||
access,
|
||||
},
|
||||
readFileSync,
|
||||
readJson,
|
||||
@ -44,6 +45,7 @@ const fsInjectable = getInjectable({
|
||||
pathExistsSync,
|
||||
lstat,
|
||||
rm,
|
||||
access,
|
||||
};
|
||||
},
|
||||
causesSideEffects: true,
|
||||
|
||||
@ -45,6 +45,7 @@ export const getOverrideFsWithFakes = () => {
|
||||
readdir: root.promises.readdir as any,
|
||||
lstat: root.promises.lstat as any,
|
||||
rm: root.promises.rm,
|
||||
access: root.promises.access,
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user