Skip to content

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

chore: reformat JSX props in test files

Steven Enamakel3b887afc5332
diff --git a/app/src/components/flows/FlowRunsSidebar.test.tsx b/app/src/components/flows/FlowRunsSidebar.test.tsx
index 36d4fc8189..da7e197b86 100644
--- a/app/src/components/flows/FlowRunsSidebar.test.tsx
+++ b/app/src/components/flows/FlowRunsSidebar.test.tsx
@@ -245,10 +245,7 @@ describe('FlowRunsSidebar', () => {
<Provider store={store}>
<MemoryRouter initialEntries={[`/flows/${flowId}`]}>
<Routes>
- <Route
- path="/flows/:id"
- element={<FlowRunsSidebar flowId={flowId} {...props} />}
- />
+ <Route path="/flows/:id" element={<FlowRunsSidebar flowId={flowId} {...props} />} />
</Routes>
</MemoryRouter>
</Provider>
diff --git a/app/src/components/flows/SuggestedWorkflows.test.tsx b/app/src/components/flows/SuggestedWorkflows.test.tsx
index 2ef7788197..cd6717bcd6 100644
--- a/app/src/components/flows/SuggestedWorkflows.test.tsx
+++ b/app/src/components/flows/SuggestedWorkflows.test.tsx
@@ -163,12 +163,14 @@ describe('SuggestedWorkflows', () => {
describe('trigger filters', () => {
async function renderWithMixedTriggers() {
- api.listSuggestions = vi.fn().mockResolvedValue([
- suggestion({ id: 'sug_schedule', title: 'Scheduled one', trigger_hint: 'schedule' }),
- suggestion({ id: 'sug_event_1', title: 'Event one', trigger_hint: 'app_event' }),
- suggestion({ id: 'sug_event_2', title: 'Event two', trigger_hint: 'app_event' }),
- suggestion({ id: 'sug_manual', title: 'Manual one', trigger_hint: 'manual' }),
- ]);
+ api.listSuggestions = vi
+ .fn()
+ .mockResolvedValue([
+ suggestion({ id: 'sug_schedule', title: 'Scheduled one', trigger_hint: 'schedule' }),
+ suggestion({ id: 'sug_event_1', title: 'Event one', trigger_hint: 'app_event' }),
+ suggestion({ id: 'sug_event_2', title: 'Event two', trigger_hint: 'app_event' }),
+ suggestion({ id: 'sug_manual', title: 'Manual one', trigger_hint: 'manual' }),
+ ]);
render(<SuggestedWorkflows />);
await waitFor(() => expect(screen.getAllByTestId('flow-suggestion-card')).toHaveLength(4));
}
diff --git a/app/src/components/flows/SuggestionCard.test.tsx b/app/src/components/flows/SuggestionCard.test.tsx
index 5f4423d85f..711a647744 100644
--- a/app/src/components/flows/SuggestionCard.test.tsx
+++ b/app/src/components/flows/SuggestionCard.test.tsx
@@ -110,9 +110,7 @@ describe('SuggestionCard', () => {
it('lists up to 4 steps and shows a "+N more steps" note beyond that', () => {
render(
<SuggestionCard
- suggestion={suggestion({
- steps_outline: ['One', 'Two', 'Three', 'Four', 'Five', 'Six'],
- })}
+ suggestion={suggestion({ steps_outline: ['One', 'Two', 'Three', 'Four', 'Five', 'Six'] })}
opening={false}
buildInProgress={false}
onBuild={vi.fn()}
diff --git a/app/src/components/flows/canvas/__tests__/CanvasToolbar.test.tsx b/app/src/components/flows/canvas/__tests__/CanvasToolbar.test.tsx
index ec7582de75..4ca317820f 100644
--- a/app/src/components/flows/canvas/__tests__/CanvasToolbar.test.tsx
+++ b/app/src/components/flows/canvas/__tests__/CanvasToolbar.test.tsx
@@ -48,9 +48,7 @@ describe('CanvasToolbar', () => {
it('reflects history.canUndo/canRedo and fires the given callbacks', () => {
const onUndo = vi.fn();
const onRedo = vi.fn();
- render(
- <CanvasToolbar history={{ canUndo: true, canRedo: false, onUndo, onRedo }} />
- );
+ render(<CanvasToolbar history={{ canUndo: true, canRedo: false, onUndo, onRedo }} />);
const undo = screen.getByTestId('flow-editor-undo');
const redo = screen.getByTestId('flow-editor-redo');
diff --git a/app/src/components/ui/TileGrid.test.tsx b/app/src/components/ui/TileGrid.test.tsx
index fb31514ee3..c130ce82e8 100644
--- a/app/src/components/ui/TileGrid.test.tsx
+++ b/app/src/components/ui/TileGrid.test.tsx
@@ -32,7 +32,11 @@ describe('TileGrid', () => {
<div />
</TileGrid>
);
- expect(screen.getByTestId('grid')).toHaveClass('sm:grid-cols-2', 'lg:grid-cols-3', '2xl:grid-cols-4');
+ expect(screen.getByTestId('grid')).toHaveClass(
+ 'sm:grid-cols-2',
+ 'lg:grid-cols-3',
+ '2xl:grid-cols-4'
+ );
});
it('adds p-4 padding when padded is true', () => {
@@ -115,12 +119,7 @@ describe('Tile', () => {
title="Notifications"
htmlFor="notif-toggle"
control={
- <input
- id="notif-toggle"
- type="checkbox"
- aria-label="Notifications"
- onChange={onChange}
- />
+ <input id="notif-toggle" type="checkbox" aria-label="Notifications" onChange={onChange} />
}
/>
);
diff --git a/app/src/pages/WorkflowRunsPage.test.tsx b/app/src/pages/WorkflowRunsPage.test.tsx
index d771fa88c4..952fa7601b 100644
--- a/app/src/pages/WorkflowRunsPage.test.tsx
+++ b/app/src/pages/WorkflowRunsPage.test.tsx
@@ -166,10 +166,7 @@ describe('WorkflowRunsPage', () => {
await waitFor(() => expect(row).toHaveTextContent('pending approval'));
// Badge now renders the shared outline chip; the warning colour comes
// from `data-variant`, not a literal `bg-amber-50` fill class.
- expect(row.querySelector('span[data-slot="badge"]')).toHaveAttribute(
- 'data-variant',
- 'warning'
- );
+ expect(row.querySelector('span[data-slot="badge"]')).toHaveAttribute('data-variant', 'warning');
});
it('leaves a running run without a matching flow approval labeled "running"', async () => {
diff --git a/app/src/pages/__tests__/FlowCanvasPage.test.tsx b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
index 1d6fa0ede0..5544317c00 100644
--- a/app/src/pages/__tests__/FlowCanvasPage.test.tsx
+++ b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
@@ -763,10 +763,7 @@ describe('FlowCanvasPage side panel switching', () => {
expect(screen.getByTestId('flow-canvas-side-panel')).toBeInTheDocument();
expect(screen.getByTestId('stub-copilot-panel')).toBeInTheDocument();
- expect(screen.getByTestId('flow-canvas-copilot-toggle')).toHaveAttribute(
- 'data-state',
- 'on'
- );
+ expect(screen.getByTestId('flow-canvas-copilot-toggle')).toHaveAttribute('data-state', 'on');
});
it('switches to Manual (the node palette) via the toggle', async () => {
@@ -792,7 +789,7 @@ describe('FlowCanvasPage side panel switching', () => {
expect(screen.getByTestId('flow-canvas-open-panel')).toBeInTheDocument();
});
- it('reopens the side panel (back to Copilot) from the toolbar\'s open-panel button', async () => {
+ it("reopens the side panel (back to Copilot) from the toolbar's open-panel button", async () => {
getFlow.mockResolvedValue(makeFlow());
renderEditor();
await waitFor(() => expect(screen.getByTestId('flow-canvas')).toBeInTheDocument());