mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix tests by global override pathExists
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
46209ad233
commit
bcb01acc12
1 file changed
+11
@@ -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");
|
||||||
|
});
|
||||||
Reference in new issue
Block a user