Fix no_proxy test (#28131)

Co-authored-by: Jerry Lin <jerrysf@google.com>
This commit is contained in:
Jerry Lin
2026-06-25 13:35:41 -07:00
committed by GitHub
parent df997354c8
commit 8cd5c0f71f
+1
View File
@@ -261,6 +261,7 @@ describe('fetch utils', () => {
it('should fall back to no_proxy if NO_PROXY is not set', () => {
const proxyUrl = 'http://proxy.example.com';
const noProxyValue = 'localhost,127.0.0.1';
vi.stubEnv('NO_PROXY', undefined);
vi.stubEnv('no_proxy', noProxyValue);
setGlobalProxy(proxyUrl);