implement OverlayScrollbarsComponent for react

This commit is contained in:
Rene Haas
2022-10-26 18:59:55 +02:00
parent 7c5271e1ed
commit 3ecb32b349
3 changed files with 164 additions and 25 deletions
+6
View File
@@ -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 {}