Skip to content

Commit e53daa0

Browse files
aledlieclaude
andcommitted
fix(test): use globalThis instead of global for fetch mock
Replace Node.js-specific 'global' with standard 'globalThis' for cross-environment compatibility in TypeScript compilation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8243b93 commit e53daa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/test/setup.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class IntersectionObserverMock {
5959
window.IntersectionObserver = IntersectionObserverMock;
6060

6161
// Mock fetch
62-
global.fetch = vi.fn();
62+
globalThis.fetch = vi.fn();
6363

6464
// Clean up after each test
6565
afterEach(() => {

0 commit comments

Comments
 (0)