Skip to content

Commit 90a875d

Browse files
authored
chore: implement tests for dynamic parameter component (#18745)
1 parent 4dcf0c3 commit 90a875d

File tree

2 files changed

+1020
-0
lines changed

2 files changed

+1020
-0
lines changed

site/jest.setup.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jest.mock("contexts/useProxyLatency", () => ({
4040
global.scrollTo = jest.fn();
4141

4242
window.HTMLElement.prototype.scrollIntoView = jest.fn();
43+
// Polyfill pointer capture methods for JSDOM compatibility with Radix UI
44+
window.HTMLElement.prototype.hasPointerCapture = jest
45+
.fn()
46+
.mockReturnValue(false);
47+
window.HTMLElement.prototype.setPointerCapture = jest.fn();
48+
window.HTMLElement.prototype.releasePointerCapture = jest.fn();
4349
window.open = jest.fn();
4450
navigator.sendBeacon = jest.fn();
4551

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy