refactor: stabilize game, tutor, and analysis flows

This commit is contained in:
Stefan
2026-04-02 12:41:00 +02:00
parent dd5b4b9b95
commit c8a1325798
35 changed files with 2258 additions and 196 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import '@testing-library/jest-dom'
import { PropsWithChildren } from 'react';
if (typeof window !== 'undefined') {
// Mock scrollIntoView for JSDOM
@@ -9,5 +10,5 @@ if (typeof window !== 'undefined') {
// Mock react-markdown to avoid ESM issues in Jest
jest.mock('react-markdown', () => ({
__esModule: true,
default: (props: any) => props.children,
default: ({ children }: PropsWithChildren) => children,
}));