Skip to content

Commit 58104a8

Browse files
committed
Fix Jest configuration issue in Game.test.js
- Add explicit Jest import from '@jest/globals' to resolve ReferenceError - Maintain all existing test functionality and structure - Fix CI/CD pipeline failure caused by undefined jest globals - Ensure compatibility with ES modules and modern Jest configuration
1 parent 34dc04a commit 58104a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/core/Game.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// tests/core/Game.test.js
22

3+
import { jest } from '@jest/globals';
34
import { Game } from '../../src/core/Game.js';
45
import { Board } from '../../src/core/Board.js';
56
import { BoardRenderer } from '../../src/ui/BoardRenderer.js';
@@ -376,4 +377,4 @@ describe('Game Class - Issue #14 Validation', () => {
376377
expect(result.reason).toBe('Cannot move to the same square');
377378
});
378379
});
379-
});
380+
});

0 commit comments

Comments
 (0)