fix deep cloning bug where phases don't have their own children but store references #27

Merged
9828273 merged 12 commits from fix/deep-clone-data into dev 2025-12-09 14:55:47 +00:00
Showing only changes of commit d4393e7635 - Show all commits

View File

@@ -0,0 +1,14 @@
import { render } from '@testing-library/react';
import { act } from '@testing-library/react';
import ScrollIntoView from '../../../../../src/components/ScrollIntoView';
test('scrolls the element into view on render', () => {
const scrollMock = jest.fn();
HTMLElement.prototype.scrollIntoView = scrollMock;
act(() => {
render(<ScrollIntoView />);
});
expect(scrollMock).toHaveBeenCalledWith({ behavior: 'smooth' });
});