diff --git a/src/components/GitSettingsProvider.test.tsx b/src/components/GitSettingsProvider.test.tsx index 8aab6379..f15c1963 100644 --- a/src/components/GitSettingsProvider.test.tsx +++ b/src/components/GitSettingsProvider.test.tsx @@ -7,7 +7,7 @@ import type { GitCredential } from '@/contexts/GitSettingsContext'; // Test component that uses the hook function TestComponent() { - const { settings, addCredential, removeCredential, updateCredential, isConfigured } = useGitSettings(); + const { settings, updateSettings, addCredential, removeCredential, updateCredential, isConfigured } = useGitSettings(); const handleAdd = () => { const credential: GitCredential = { @@ -25,13 +25,21 @@ function TestComponent() { removeCredential('https://github.com'); }; + const handleUpdateCorsProxy = () => { + updateSettings({ corsProxy: 'https://custom-cors.example.com' }); + }; + + + return (
+ CORS proxy server used for all Git operations with remote repositories. Required for browser-based Git operations. +
+