- Silence jsdom's not-implemented warning during router-driven tests - Keep the fix in test bootstrap only so runtime behavior stays unchanged
7 lines
157 B
TypeScript
7 lines
157 B
TypeScript
import '@testing-library/jest-dom/vitest';
|
|
import { vi } from 'vitest';
|
|
|
|
Object.defineProperty(window, 'scrollTo', {
|
|
value: vi.fn(),
|
|
writable: true,
|
|
});
|