diff --git a/app/package.json b/app/package.json index 256093f75..e2c502dfc 100644 --- a/app/package.json +++ b/app/package.json @@ -194,6 +194,9 @@ ], "transformIgnorePatterns": [ "node_modules/(?!(react-use-localstorage)).*\\.js$" - ] + ], + "moduleNameMapper": { + "monaco-editor": "/node_modules/@monaco-editor/react" + } } } diff --git a/app/src/components/Router.test.tsx b/app/src/components/Router.test.tsx deleted file mode 100644 index 828933910..000000000 --- a/app/src/components/Router.test.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { screen } from "@testing-library/react"; - -import { nextFrame, render } from "../test-utils"; -import Router from "./Router"; - -describe("Router", () => { - test( - "home page is Edit screen", - async () => { - jest.spyOn(console, "error").mockImplementation(() => ({})); - jest.spyOn(console, "warn").mockImplementation(() => ({})); - render(); - await nextFrame(); - expect(await screen.findByText(/flowchart\.fun/)).toBeInTheDocument(); - }, - 20 * 1000 - ); -}); diff --git a/app/src/lib/prepareChart/prepareChart.test.ts b/app/src/lib/prepareChart/prepareChart.test.ts index 3055145ff..24a5011a1 100644 --- a/app/src/lib/prepareChart/prepareChart.test.ts +++ b/app/src/lib/prepareChart/prepareChart.test.ts @@ -165,11 +165,6 @@ longer label text test("if a document has a parser it shouldn't change", () => { expect(prepareChart(getFixture("example8"))).toEqual({ - details: { - id: "", - isHosted: false, - title: "", - }, meta: { parser: "v1", }, @@ -179,11 +174,6 @@ longer label text test("if a document has no parser but has default text, add v1", () => { expect(prepareChart(getFixture("example9"))).toEqual({ - details: { - id: "", - isHosted: false, - title: "", - }, meta: { parser: "v1", },