Skip to content

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

fix: correct test import path for BrainRedirect component

Steven Enamakel4eb86445313e
diff --git a/app/src/components/routing/BrainRedirect.test.tsx b/app/src/components/routing/BrainRedirect.test.tsx
index cb6209fe59..e6b45ec1f5 100644
--- a/app/src/components/routing/BrainRedirect.test.tsx
+++ b/app/src/components/routing/BrainRedirect.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@testing-library/react';
+import { cleanup, render, screen } from '@testing-library/react';
import { MemoryRouter, Route, Routes, useLocation } from 'react-router-dom';
import { describe, expect, it } from 'vitest';
@@ -10,6 +10,8 @@ function Where() {
}
function renderAt(entry: string) {
+ // Several cases render more than once per test; start each from a clean DOM.
+ cleanup();
render(
<MemoryRouter initialEntries={[entry]}>
<Routes>