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 imports to use correct module paths

Steven Enamakelce1e6e9d1750
diff --git a/app/src/components/settings/panels/AgentEditorPage.test.tsx b/app/src/components/settings/panels/AgentEditorPage.test.tsx
index 697a1f879e..c807dab641 100644
--- a/app/src/components/settings/panels/AgentEditorPage.test.tsx
+++ b/app/src/components/settings/panels/AgentEditorPage.test.tsx
@@ -79,7 +79,7 @@ describe('AgentEditorPage', () => {
expect(arg.id).toBe('helper'); // auto-slugified from name
expect(arg.name).toBe('Helper');
expect(arg.model).toBe('hint:coding');
- expect(mockNavigate).toHaveBeenCalledWith('/settings/agents', expect.anything());
+ expect(mockNavigate).toHaveBeenCalledWith('/settings/agents');
});
it('offers the vision tier + hint as model options', async () => {
diff --git a/app/src/components/settings/panels/ProfileEditorPage.test.tsx b/app/src/components/settings/panels/ProfileEditorPage.test.tsx
index d1867761f0..2e473fed70 100644
--- a/app/src/components/settings/panels/ProfileEditorPage.test.tsx
+++ b/app/src/components/settings/panels/ProfileEditorPage.test.tsx
@@ -75,7 +75,7 @@ describe('ProfileEditorPage', () => {
expect(sent.id).toBe('my-research');
expect(sent.name).toBe('My Research');
expect(sent.includeAgentConversations).toBe(true);
- expect(mockNavigate).toHaveBeenCalledWith('/settings/profiles', expect.anything());
+ expect(mockNavigate).toHaveBeenCalledWith('/settings/profiles');
});
it('disables Create until a non-empty resolved id exists', () => {
diff --git a/app/src/components/settings/panels/ProfilesPanel.test.tsx b/app/src/components/settings/panels/ProfilesPanel.test.tsx
index aafea4dc53..5973426c1f 100644
--- a/app/src/components/settings/panels/ProfilesPanel.test.tsx
+++ b/app/src/components/settings/panels/ProfilesPanel.test.tsx
@@ -95,10 +95,7 @@ describe('ProfilesPanel', () => {
renderPanel();
await screen.findByText('Writer');
fireEvent.click(screen.getAllByText('Edit')[0]);
- expect(mockNavigate).toHaveBeenCalledWith(
- expect.stringContaining('/settings/profiles/edit/'),
- expect.anything()
- );
+ expect(mockNavigate).toHaveBeenCalledWith(expect.stringContaining('/settings/profiles/edit/'));
});
it('deletes a custom profile after confirmation', async () => {