Skip to content

Commit 3f088b3

Browse files
xenobiasoftclaude
andcommitted
Fix TS build: add isNewPlayer to GamePage test mocks
The UsePlayerServiceReturn interface gained a required isNewPlayer property but the existing GamePage.test.tsx and GamePage.integration.test.tsx mock objects were not updated, causing tsc -b to fail in CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 09acadd commit 3f088b3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/frontend/Sudoku.React/src/pages/GamePage.integration.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ beforeEach(() => {
4444
playerAlias: 'test-player',
4545
profileId: null,
4646
isInitialized: true,
47+
isNewPlayer: false,
4748
isLoading: false,
4849
error: null,
4950
initializePlayer: vi.fn(),
@@ -151,6 +152,7 @@ describe('GamePage - New Architecture', () => {
151152
playerAlias: null,
152153
profileId: null,
153154
isInitialized: false,
155+
isNewPlayer: true,
154156
isLoading: false,
155157
error: null,
156158
initializePlayer: vi.fn(),

src/frontend/Sudoku.React/src/pages/GamePage.test.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ beforeEach(() => {
6464
playerAlias: 'test-player',
6565
profileId: null,
6666
isInitialized: true,
67+
isNewPlayer: false,
6768
isLoading: false,
6869
error: null,
6970
initializePlayer: vi.fn(),
@@ -140,6 +141,7 @@ describe('GamePage - loading', () => {
140141
playerAlias: null,
141142
profileId: null,
142143
isInitialized: false,
144+
isNewPlayer: true,
143145
isLoading: true,
144146
error: null,
145147
initializePlayer: vi.fn(),
@@ -156,6 +158,7 @@ describe('GamePage - loading', () => {
156158
isInitialized: false,
157159
isLoading: false,
158160
error: null,
161+
isNewPlayer: true,
159162
initializePlayer: vi.fn(),
160163
clearPlayer: vi.fn(),
161164
});
@@ -168,6 +171,7 @@ describe('GamePage - loading', () => {
168171
playerAlias: null,
169172
profileId: null,
170173
isInitialized: true,
174+
isNewPlayer: false,
171175
isLoading: false,
172176
error: 'Failed to initialize player',
173177
initializePlayer: vi.fn(),
@@ -268,6 +272,7 @@ describe('GamePage - after load', () => {
268272
playerAlias: null,
269273
profileId: null,
270274
isInitialized: false,
275+
isNewPlayer: true,
271276
isLoading: false,
272277
error: null,
273278
initializePlayer: vi.fn(),

0 commit comments

Comments
 (0)