diff --git a/src/common/fs/fs.injectable.ts b/src/common/fs/fs.injectable.ts index 668294a510..74c3050936 100644 --- a/src/common/fs/fs.injectable.ts +++ b/src/common/fs/fs.injectable.ts @@ -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, diff --git a/src/test-utils/override-fs-with-fakes.ts b/src/test-utils/override-fs-with-fakes.ts index 0150071564..f259d0ac92 100644 --- a/src/test-utils/override-fs-with-fakes.ts +++ b/src/test-utils/override-fs-with-fakes.ts @@ -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, })); }; };