[test] Add tests for --disable-api-nodes release fetch skip functionality (#4799)

- Add comprehensive test coverage for the new --disable-api-nodes argument handling
- Tests verify release fetching is properly skipped when argument is present
- Cover edge cases including multiple args, null argv, and missing system stats
- Ensures backward compatibility when argument is not present
This commit is contained in:
Yoland Yan
2025-08-15 10:14:41 -07:00
committed by GitHub
parent 9dbdc6a72b
commit a132dad216
2 changed files with 112 additions and 0 deletions

View File

@@ -226,6 +226,14 @@ export const useReleaseStore = defineStore('release', () => {
return
}
// Skip fetching if API nodes are disabled via argv
if (
systemStatsStore.systemStats?.system?.argv?.includes(
'--disable-api-nodes'
)
) {
return
}
isLoading.value = true
error.value = null