Skip to content

Commit ca87dea

Browse files
committed
fix: add mock implementation for scrollIntoView in setupTests
1 parent a6711ef commit ca87dea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/setupTests.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ window.matchMedia =
2222
};
2323
};
2424

25+
// Mock scrollIntoView - not implemented in JSDOM but used by Ionic components
26+
Element.prototype.scrollIntoView = function() {};
27+
2528
// Run before each test SUITE
2629
beforeAll(() => {
2730
// mock service worker start up

0 commit comments

Comments
 (0)