Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90a875d

Browse files
authored
chore: implement tests for dynamic parameter component (#18745)
1 parent4dcf0c3 commit90a875d

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)

[8]ページ先頭

©2009-2025 Movatter.jp