fix: align chess game tests after rebase

This commit is contained in:
Stefan
2026-04-02 12:59:20 +02:00
parent c8a1325798
commit 03608b9d70
3 changed files with 25 additions and 13 deletions
+1
View File
@@ -5,6 +5,7 @@ if (typeof window !== 'undefined') {
// Mock scrollIntoView for JSDOM
window.HTMLElement.prototype.scrollIntoView = jest.fn();
window.HTMLMediaElement.prototype.play = () => Promise.resolve();
window.HTMLMediaElement.prototype.pause = jest.fn();
}
// Mock react-markdown to avoid ESM issues in Jest