game ready

This commit is contained in:
Stefan
2025-11-23 11:44:05 +01:00
parent 30f1e9e3a5
commit 8a6d6bd780
8 changed files with 5259 additions and 30 deletions
+13 -6
View File
@@ -46,12 +46,19 @@ jest.mock("./Tutor", () => ({
// Mock APIKeyInput to avoid portal issues or complex interactions if needed,
// but since we integrated it into the start screen, we can test the interaction directly.
jest.mock("./APIKeyInput", () => ({
APIKeyInput: ({ onKeySubmit }: any) => (
<button onClick={() => onKeySubmit("test-key")} data-testid="api-key-trigger">
Set API Key
</button>
),
APIKeyInput: ({ onKeySubmit }: any) => (
<button onClick={() => onKeySubmit("test-key")} data-testid="api-key-trigger">
Set API Key
</button>
),
}));
jest.mock("./GameAnalysisModal", () => ({
GameAnalysisModal: () => <div data-testid="analysis-modal">Analysis Modal Mock</div>,
}));
jest.mock("./GameOverModal", () => ({
GameOverModal: () => <div data-testid="game-over-modal">Game Over Modal Mock</div>,
}));
describe("ChessGame Component", () => {