mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: upgrade to react@19 (#9182)
This commit is contained in:
parent
9ee0b8ffcb
commit
31e8476c78
58 changed files with 2774 additions and 2828 deletions
|
@ -1,5 +1,4 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import type { ExcalidrawElement } from "../element/types";
|
||||
import { CODES, KEYS } from "../keys";
|
||||
import { Excalidraw } from "../index";
|
||||
|
@ -14,6 +13,7 @@ import {
|
|||
render,
|
||||
screen,
|
||||
togglePopover,
|
||||
unmountComponent,
|
||||
} from "./test-utils";
|
||||
import { FONT_FAMILY } from "../constants";
|
||||
import { vi } from "vitest";
|
||||
|
@ -43,8 +43,7 @@ const checkpoint = (name: string) => {
|
|||
);
|
||||
};
|
||||
beforeEach(async () => {
|
||||
// Unmount ReactDOM from root
|
||||
ReactDOM.unmountComponentAtNode(document.getElementById("root")!);
|
||||
unmountComponent();
|
||||
|
||||
localStorage.clear();
|
||||
renderStaticScene.mockClear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue