fix: wrong imports in tests

This commit is contained in:
Deepen Timalsina 2025-04-15 10:47:06 +05:45
parent 975a3d17bc
commit 6d4f83040b
7 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@ import { ARROW_TYPE } from "@excalidraw/common";
import { pointFrom } from "@excalidraw/math"; import { pointFrom } from "@excalidraw/math";
import { Excalidraw, mutateElement } from "@excalidraw/excalidraw"; import { Excalidraw, mutateElement } from "@excalidraw/excalidraw";
import Scene from "@excalidraw/excalidraw/scene/Scene"; import Scene from "@excalidraw/excalidraw/src/scene/Scene";
import { actionSelectAll } from "@excalidraw/excalidraw/actions"; import { actionSelectAll } from "@excalidraw/excalidraw/actions";
import { actionDuplicateSelection } from "@excalidraw/excalidraw/actions/actionDuplicateSelection"; import { actionDuplicateSelection } from "@excalidraw/excalidraw/actions/actionDuplicateSelection";

View file

@ -13,7 +13,7 @@ import {
decodeSvgBase64Payload, decodeSvgBase64Payload,
encodeSvgBase64Payload, encodeSvgBase64Payload,
exportToSvg, exportToSvg,
} from "../scene/export"; } from "../src/scene/export";
import { API } from "./helpers/api"; import { API } from "./helpers/api";
import { render, waitFor } from "./test-utils"; import { render, waitFor } from "./test-utils";

View file

@ -27,7 +27,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
import { Excalidraw } from "../index"; import { Excalidraw } from "../index";
import { getSelectedElements } from "../scene"; import { getSelectedElements } from "../src/scene";
import { getLassoSelectedElementIds } from "../lasso/utils"; import { getLassoSelectedElementIds } from "../lasso/utils";

View file

@ -13,7 +13,7 @@ import type {
ExcalidrawRectangleElement, ExcalidrawRectangleElement,
} from "@excalidraw/element/types"; } from "@excalidraw/element/types";
import type Scene from "@excalidraw/excalidraw/scene/Scene"; import type Scene from "@excalidraw/excalidraw/src/scene/Scene";
import { Excalidraw } from "../index"; import { Excalidraw } from "../index";
import * as InteractiveCanvas from "../renderer/interactiveScene"; import * as InteractiveCanvas from "../renderer/interactiveScene";

View file

@ -9,7 +9,7 @@ import type {
} from "@excalidraw/element/types"; } from "@excalidraw/element/types";
import { prepareElementsForExport } from "../../data"; import { prepareElementsForExport } from "../../data";
import * as exportUtils from "../../scene/export"; import * as exportUtils from "../../src/scene/export";
import { import {
diamondFixture, diamondFixture,
ellipseFixture, ellipseFixture,

View file

@ -1,5 +1,5 @@
import { MIME_TYPES } from "@excalidraw/common"; import { MIME_TYPES } from "@excalidraw/common";
import * as mockedSceneExportUtils from "@excalidraw/excalidraw/scene/export"; import * as mockedSceneExportUtils from "@excalidraw/excalidraw/src/scene/export";
import { diagramFactory } from "@excalidraw/excalidraw/tests/fixtures/diagramFixture"; import { diagramFactory } from "@excalidraw/excalidraw/tests/fixtures/diagramFixture";
import { vi } from "vitest"; import { vi } from "vitest";

View file

@ -1,5 +1,5 @@
import { decodePngMetadata } from "@excalidraw/excalidraw/data/image"; import { decodePngMetadata } from "@excalidraw/excalidraw/data/image";
import { decodeSvgBase64Payload } from "@excalidraw/excalidraw/scene/export"; import { decodeSvgBase64Payload } from "@excalidraw/excalidraw/src/scene/export";
import { API } from "@excalidraw/excalidraw/tests/helpers/api"; import { API } from "@excalidraw/excalidraw/tests/helpers/api";
import type { ImportedDataState } from "@excalidraw/excalidraw/data/types"; import type { ImportedDataState } from "@excalidraw/excalidraw/data/types";