Handle copy as part of fake FS

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 f7c3657e60
commit af48b7de5f
2 files changed
+7 -1

No files matched your search

+2
View File
@@ -29,6 +29,7 @@ const fsInjectable = getInjectable({
writeJsonSync,
pathExistsSync,
pathExists,
copy,
} = fse;
return {
@@ -46,6 +47,7 @@ const fsInjectable = getInjectable({
lstat,
rm,
access,
copy: copy as (src: string, dest: string, options?: fse.CopyOptions) => Promise<void>,
};
},
causesSideEffects: true,