mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com> Co-authored-by: John Richmond <5629+jr@users.noreply.github.com>
24 lines
554 B
TypeScript
24 lines
554 B
TypeScript
import '@testing-library/jest-dom/vitest';
|
|
import failOnConsole from 'vitest-fail-on-console';
|
|
|
|
failOnConsole({
|
|
shouldFailOnDebug: true,
|
|
shouldFailOnError: true,
|
|
shouldFailOnInfo: true,
|
|
shouldFailOnLog: true,
|
|
shouldFailOnWarn: true,
|
|
});
|
|
|
|
global.ResizeObserver = vi.fn().mockImplementation(() => ({
|
|
observe: vi.fn(),
|
|
unobserve: vi.fn(),
|
|
disconnect: vi.fn(),
|
|
}));
|
|
|
|
global.IntersectionObserver = vi.fn().mockImplementation(() => ({
|
|
observe: vi.fn(),
|
|
unobserve: vi.fn(),
|
|
disconnect: vi.fn(),
|
|
}));
|
|
|
|
beforeEach(() => vi.clearAllMocks());
|