1
0
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:
Sebastian Malton 2022-12-02 15:50:13 -05:00
parent 906172bc29
commit f7c3657e60
2 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ const fsInjectable = getInjectable({
readdir, readdir,
lstat, lstat,
rm, rm,
access,
}, },
readFileSync, readFileSync,
readJson, readJson,
@ -44,6 +45,7 @@ const fsInjectable = getInjectable({
pathExistsSync, pathExistsSync,
lstat, lstat,
rm, rm,
access,
}; };
}, },
causesSideEffects: true, causesSideEffects: true,

View File

@ -45,6 +45,7 @@ export const getOverrideFsWithFakes = () => {
readdir: root.promises.readdir as any, readdir: root.promises.readdir as any,
lstat: root.promises.lstat as any, lstat: root.promises.lstat as any,
rm: root.promises.rm, rm: root.promises.rm,
access: root.promises.access,
})); }));
}; };
}; };