mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-13 07:22:26 +03:00
implement OverlayScrollbarsComponent for react
This commit is contained in:
@@ -2,3 +2,9 @@ import matchers from '@testing-library/jest-dom/matchers';
|
||||
import { expect } from 'vitest';
|
||||
|
||||
expect.extend(matchers);
|
||||
|
||||
// remove jsdom warning for not implemented second argument for window.getComputedStyle
|
||||
try {
|
||||
const cmptdStyle = window.getComputedStyle;
|
||||
window.getComputedStyle = (a) => cmptdStyle(a);
|
||||
} catch {}
|
||||
|
||||
Reference in New Issue
Block a user