Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): update test to match new guard behavior

Steven Enamakel93b537059e29
diff --git a/app/src/AppRoutes.guards.test.tsx b/app/src/AppRoutes.guards.test.tsx
index 0d4330fba8..473a1b5d39 100644
--- a/app/src/AppRoutes.guards.test.tsx
+++ b/app/src/AppRoutes.guards.test.tsx
@@ -226,7 +226,8 @@ describe('AppRoutes — the whole route table stays classified', () => {
// `<Navigate>` internally after copying the query string and hash, so the
// route body never contains the literal `<Navigate`. Matching only that
// classified `/skills` as 'none' and silently dropped it from this table.
- if (/<(?:Navigate|ForwardSearch)\b/.test(body)) out[match[1]] = 'redirect';
+ // `BrainRedirect` wraps a `<Navigate>` the same way.
+ if (/<(?:Navigate|ForwardSearch|BrainRedirect)\b/.test(body)) out[match[1]] = 'redirect';
else if (/<ProtectedRoute\b[^>]*requireAuth=\{false\}/.test(body))
out[match[1]] = 'protected-but-open';
else if (/<ProtectedRoute\b/.test(body)) out[match[1]] = 'protected';