Merging dev into main #49

Merged
8464960 merged 260 commits from dev into main 2026-01-28 10:48:52 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 1b8095376b - Show all commits

View File

@@ -27,8 +27,7 @@ function DraggableNode({ className, children, nodeType, onDrop }: DraggableNodeP
const draggableRef = useRef<HTMLDivElement>(null);
const [position, setPosition] = useState<XYPosition>({ x: 0, y: 0 });
// @ts-ignore
// @ts-expect-error we expect the null referece here.
useDraggable(draggableRef, {
position: position,
onDrag: ({ offsetX, offsetY }) => {

View File

@@ -25,7 +25,9 @@ class MockEventSource {
// mock event source generation with fake function that returns our fake mock source
beforeAll(() => {
(globalThis as any).EventSource = jest.fn((url: string) => new MockEventSource(url));
// Cast globalThis to a type exposing EventSource and assign a mocked constructor.
(globalThis as unknown as { EventSource?: typeof EventSource }).EventSource =
jest.fn((url: string) => new MockEventSource(url)) as unknown as typeof EventSource;
});
// clean after tests