mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix duplicate mock warning
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
9877f99c3a
commit
5d39fe5539
@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
export default {};
|
|
||||||
|
|
||||||
export const Uri = {
|
|
||||||
file: (path: string) => path,
|
|
||||||
};
|
|
||||||
|
|
||||||
export const editor = {
|
|
||||||
getModel: () => ({}),
|
|
||||||
create: () => ({}),
|
|
||||||
};
|
|
||||||
@ -44,6 +44,8 @@ global.ResizeObserver = class {
|
|||||||
jest.mock("./renderer/components/monaco-editor/monaco-editor");
|
jest.mock("./renderer/components/monaco-editor/monaco-editor");
|
||||||
jest.mock("./renderer/components/tooltip/withTooltip");
|
jest.mock("./renderer/components/tooltip/withTooltip");
|
||||||
|
|
||||||
|
jest.mock("monaco-editor");
|
||||||
|
|
||||||
const getInjectables = (environment: "renderer" | "main", filePathGlob: string) => [
|
const getInjectables = (environment: "renderer" | "main", filePathGlob: string) => [
|
||||||
...glob.sync(`./{common,extensions,${environment}}/**/${filePathGlob}`, {
|
...glob.sync(`./{common,extensions,${environment}}/**/${filePathGlob}`, {
|
||||||
cwd: __dirname,
|
cwd: __dirname,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user