jsdom-testing-mocks
jsdom-testing-mocks copied to clipboard
[Request] Support `window.visualViewport`
VisualViewport is a window property primarily aimed at supporting pinch-zoom interactions. I came across it while debugging an issue with floating-ui. It seems like it would make sense to also mock this property when mocking the viewport. It also has a polyfill, which should make it fairly straightforward to implement.