BaoThangAI / frontend /src /setupTests.js
TrungLC's picture
Initial commit - BaoThangAI
cb75c6a
Raw
History Blame Contribute Delete
228 Bytes
import '@testing-library/jest-dom';
import { vi } from 'vitest';
global.Element.prototype.scrollIntoView = vi.fn();
global.Element.prototype.scrollTo = vi.fn();
global.window.scroll = vi.fn();
global.window.scrollTo = vi.fn();