Update all packages to the latest version

This commit is contained in:
Vitaly Rtishchev
2023-11-04 18:27:58 +04:00
parent ad03e8a795
commit 1e771619d7
10 changed files with 474 additions and 343 deletions

26
jest.setup.cjs Normal file
View File

@ -0,0 +1,26 @@
import '@testing-library/jest-dom';
const { getComputedStyle } = window;
window.getComputedStyle = (elt) => getComputedStyle(elt);
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addListener: jest.fn(),
removeListener: jest.fn(),
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn(),
})),
});
class ResizeObserver {
observe() {}
unobserve() {}
disconnect() {}
}
window.ResizeObserver = ResizeObserver;