Skip to content

Commit f0e3e5b

Browse files
authored
Bump dependencies (#3158)
* use `act` from `react` instead of `@testing-library/react` * bump dependencies * bump `@testing-library/react` * bump `@react-aria/interactions` * bump "@tanstack/react-virtual" * add `ResizeObserver` polyfill, and enable it by default for tests * mock `getBoundingClientRect` Otherwise the virtualization tests don't work as expected because they rely on the client rect which is not supported (or not correctly measured) in JSDOM.
1 parent 1a440e1 commit f0e3e5b

File tree

13 files changed

+505
-203
lines changed

13 files changed

+505
-203
lines changed

jest/polyfills.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import ResizeObserverPolyfill from 'resize-observer-polyfill'
2+
3+
if (typeof ResizeObserver === 'undefined') {
4+
global.ResizeObserver = ResizeObserverPolyfill
5+
}
6+
17
// JSDOM Doesn't implement innerText yet: https://github.com/jsdom/jsdom/issues/1245
28
// So this is a hacky way of implementing it using `textContent`.
39
// Real implementation doesn't use textContent because:

0 commit comments

Comments
 (0)