Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: avoid shadowing fetch in client test guard

[._.]/ Adam Eivy05993efb89ec
diff --git a/client/src/test/networkGuard.js b/client/src/test/networkGuard.js
index efd5db85d2..b0b0a09e54 100644
--- a/client/src/test/networkGuard.js
+++ b/client/src/test/networkGuard.js
@@ -4,7 +4,7 @@
export function createUnexpectedFetchGuard(testName) {
const requests = new Map();
- const fetch = (input) => {
+ const guardedFetch = (input) => {
let path = '<invalid URL>';
try {
const target = typeof input === 'string' || input instanceof URL ? input : input?.url;
@@ -27,5 +27,5 @@ export function createUnexpectedFetchGuard(testName) {
return new Error(`Unexpected test fetch; mock this request or use an owned fixture: ${first.join(', ')}${remaining ? `, and ${remaining} more` : ''}`);
};
- return { fetch, takeError };
+ return { fetch: guardedFetch, takeError };
}