Skip to content

Commit 5c204a6

Browse files
committed
fix: global
1 parent 988abbd commit 5c204a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jest-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
require('@testing-library/jest-dom');
1+
import '@testing-library/jest-dom';
22

33
// Mock ResizeObserver for tests
4-
global.ResizeObserver = jest.fn().mockImplementation(() => ({
4+
(global as any).ResizeObserver = jest.fn().mockImplementation(() => ({
55
observe: jest.fn(),
66
unobserve: jest.fn(),
77
disconnect: jest.fn(),

0 commit comments

Comments
 (0)