🔒 Improve SSH connection handling, enhance file transfer reliability, and update OAuth error handling and tests

This commit is contained in:
2026-01-30 04:53:18 +00:00
parent ab595394be
commit 9fdfbb22d8
14 changed files with 218 additions and 103 deletions

View File

@@ -18,15 +18,15 @@ vi.mock('../../../src/utilities/tournament-query.js', () => ({
vi.mock('../../../src/composables/useAsyncState.js', () => ({
useAsyncState: vi.fn(() => {
const data = ref(null);
const isLoading = ref(false);
const loading = ref(false);
const error = ref(null);
return {
data,
isLoading,
loading,
error,
execute: vi.fn(async fn => {
isLoading.value = true;
loading.value = true;
error.value = null;
try {
const result = await fn();
@@ -36,13 +36,13 @@ vi.mock('../../../src/composables/useAsyncState.js', () => ({
error.value = e;
throw e;
} finally {
isLoading.value = false;
loading.value = false;
}
}),
reset: vi.fn(() => {
data.value = null;
error.value = null;
isLoading.value = false;
loading.value = false;
})
};
})