Add fake access support

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-06 09:18:59 -05:00
1 parent 906172bc29
commit f7c3657e60
2 files changed
+3

No files matched your search

+2
View File
@@ -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,
+1
View File
@@ -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,
}));
};
};