fix tests
This commit is contained in:
parent
e187faee77
commit
927e36c7b4
@ -81,7 +81,7 @@
|
|||||||
"test:typecheck": "tsc",
|
"test:typecheck": "tsc",
|
||||||
"test:update": "yarn test:app --update --watch=false",
|
"test:update": "yarn test:app --update --watch=false",
|
||||||
"test": "yarn clear:workspaces && yarn workspace @excalidraw/utils build:esm && yarn test:app",
|
"test": "yarn clear:workspaces && yarn workspace @excalidraw/utils build:esm && yarn test:app",
|
||||||
"test:coverage": "vitest --coverage",
|
"test:coverage": "yarn clear:workspaces && yarn workspace @excalidraw/utils build:esm && yarn test:app --coverage",
|
||||||
"test:coverage:watch": "vitest --coverage --watch",
|
"test:coverage:watch": "vitest --coverage --watch",
|
||||||
"test:ui": "yarn test --ui --coverage.enabled=true",
|
"test:ui": "yarn test --ui --coverage.enabled=true",
|
||||||
"autorelease": "node scripts/autorelease.js",
|
"autorelease": "node scripts/autorelease.js",
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
rectangleWithLinkFixture,
|
rectangleWithLinkFixture,
|
||||||
} from "../fixtures/elementFixture";
|
} from "../fixtures/elementFixture";
|
||||||
import { API } from "../helpers/api";
|
import { API } from "../helpers/api";
|
||||||
import { exportToCanvas, exportToSvg } from "../../../utils";
|
import { exportToCanvas, exportToSvg } from "../../../utils/export";
|
||||||
import { FRAME_STYLE } from "../../constants";
|
import { FRAME_STYLE } from "../../constants";
|
||||||
import { prepareElementsForExport } from "../../data";
|
import { prepareElementsForExport } from "../../data";
|
||||||
|
|
||||||
@ -250,7 +250,7 @@ describe("exporting frames", () => {
|
|||||||
exportPadding: 0,
|
exportPadding: 0,
|
||||||
exportingFrame: frame,
|
exportingFrame: frame,
|
||||||
});
|
});
|
||||||
|
console.log("SVG IS", svg.innerHTML);
|
||||||
// frame itself isn't exported
|
// frame itself isn't exported
|
||||||
expect(svg.querySelector(`[data-id="${frame.id}"]`)).toBeNull();
|
expect(svg.querySelector(`[data-id="${frame.id}"]`)).toBeNull();
|
||||||
// frame child is exported
|
// frame child is exported
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as utils from ".";
|
import * as utils from "./export";
|
||||||
import { diagramFactory } from "../excalidraw/tests/fixtures/diagramFixture";
|
import { diagramFactory } from "../excalidraw/tests/fixtures/diagramFixture";
|
||||||
import { vi } from "vitest";
|
import { vi } from "vitest";
|
||||||
import * as mockedSceneExportUtils from "../excalidraw/scene/export";
|
import * as mockedSceneExportUtils from "../excalidraw/scene/export";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user