diff --git a/app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx b/app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx index 113d867a52cd..d83fdd7a162c 100644 --- a/app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx +++ b/app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx @@ -9,10 +9,17 @@ import { EditorEntityTab, EditorViewMode } from "IDE/Interfaces/EditorTypes"; import { PageFactory } from "test/factories/PageFactory"; import { JSObjectFactory } from "test/factories/Actions/JSObject"; +// Mock the LazyCodeEditor component +jest.mock("components/editorComponents/LazyCodeEditor/index", () => { + return { + __esModule: true, + default: () =>
, + }; +}); + const basePageId = "0123456789abcdef00000000"; -// eslint-disable-next-line jest/no-disabled-tests -describe.skip("IDE Render: JS", () => { +describe("IDE Render: JS", () => { describe("JS Blank State", () => { it("Renders Fullscreen Blank State", async () => { const { findByText, getByRole, getByText } = render( diff --git a/app/client/src/pages/AppIDE/layouts/routers/QueryEditor/QueryRender.test.tsx b/app/client/src/pages/AppIDE/layouts/routers/QueryEditor/QueryRender.test.tsx index eea43a769e0b..9dd04b0a333c 100644 --- a/app/client/src/pages/AppIDE/layouts/routers/QueryEditor/QueryRender.test.tsx +++ b/app/client/src/pages/AppIDE/layouts/routers/QueryEditor/QueryRender.test.tsx @@ -15,8 +15,25 @@ import { GoogleSheetFactory } from "test/factories/Actions/GoogleSheetFactory"; const basePageId = "0123456789abcdef00000000"; -// eslint-disable-next-line jest/no-disabled-tests -describe.skip("IDE URL rendering of Queries", () => { +// Mock the LazyCodeEditor component +jest.mock("components/editorComponents/LazyCodeEditor/index", () => { + return { + __esModule: true, + default: () => , + }; +}); +// Mock Visualization component +jest.mock( + "PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx", + () => { + return { + __esModule: true, + Visualization: () => , + }; + }, +); + +describe("IDE URL rendering of Queries", () => { describe("Query Blank State", () => { it("Renders Fullscreen Blank State", async () => { const { findByText, getByRole, getByText } = render(