Skip to content

Commit 12385a3

Browse files
fix: resolve TypeScript linting errors in AuthDebugger test
Replace 'any' types with proper type annotations to satisfy @typescript-eslint/no-explicit-any rule. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1d531d5 commit 12385a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/src/components/__tests__/AuthDebugger.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ Object.defineProperty(window, "sessionStorage", {
8787
// Mock window.location in a way that works in all environments
8888
const mockLocation = {
8989
origin: "http://localhost:3000",
90-
};
90+
} as Location;
9191

9292
// Try to delete first, then redefine
9393
try {
94-
delete (window as any).location;
95-
window.location = mockLocation as any;
94+
delete (window as { location?: Location }).location;
95+
window.location = mockLocation;
9696
} catch {
9797
// If that fails, try Object.defineProperty with configurable
9898
try {
@@ -103,7 +103,7 @@ try {
103103
});
104104
} catch {
105105
// As a last resort, just assign to window.location
106-
(window as any).location = mockLocation;
106+
(window as { location: Location }).location = mockLocation;
107107
}
108108
}
109109

0 commit comments

Comments
 (0)