From bcb01acc126d58a78e7d7bd504648fc3b74d26dc Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 26 Aug 2022 15:03:10 -0400 Subject: [PATCH] Fix tests by global override pathExists Signed-off-by: Sebastian Malton --- .../fs/path-exists.global-override-for-injectable.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/common/fs/path-exists.global-override-for-injectable.ts diff --git a/src/common/fs/path-exists.global-override-for-injectable.ts b/src/common/fs/path-exists.global-override-for-injectable.ts new file mode 100644 index 0000000000..1b9b96c8dd --- /dev/null +++ b/src/common/fs/path-exists.global-override-for-injectable.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) OpenLens Authors. All rights reserved. + * Licensed under MIT License. See LICENSE in root directory for more information. + */ + +import { getGlobalOverride } from "../test-utils/get-global-override"; +import pathExistsInjectable from "./path-exists.injectable"; + +export default getGlobalOverride(pathExistsInjectable, () => async () => { + throw new Error("Tried to check if a path exists without override"); +});