Skip to content

Commit a873fdd

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(test): update workflow picker component mocks
1 parent fc92750 commit a873fdd

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/workspace-folder-selector/workspace-folder-selector.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ vi.mock('next/navigation', () => ({
2020
}))
2121

2222
vi.mock('@sim/emcn', () => ({
23-
Combobox: ({
23+
ChipCombobox: ({
2424
options,
2525
disabled,
2626
isLoading,

‎apps/sim/components/mcp/mcp-selectors.test.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/** @vitest-environment node */
22
import type { ComponentProps } from 'react'
3-
import type { Combobox } from '@sim/emcn'
3+
import type { ChipCombobox } from '@sim/emcn'
44
import { renderToStaticMarkup } from 'react-dom/server'
55
import { beforeEach, describe, expect, it, vi } from 'vitest'
66

77
const mocks = vi.hoisted(() => ({
8-
combobox: vi.fn<(props: ComponentProps<typeof Combobox>) => null>(() => null),
8+
combobox: vi.fn<(props: ComponentProps<typeof ChipCombobox>) => null>(() => null),
99
setValue: vi.fn(),
1010
longInput: vi.fn(() => null),
1111
shortInput: vi.fn(() => null),
@@ -38,7 +38,11 @@ vi.mock('@/stores/workflow-diff/store', () => ({
3838
},
3939
}),
4040
}))
41-
vi.mock('@sim/emcn', () => ({ Combobox: mocks.combobox, Label: () => null }))
41+
vi.mock('@sim/emcn', () => ({
42+
Combobox: mocks.combobox,
43+
ChipCombobox: mocks.combobox,
44+
Label: () => null,
45+
}))
4246
vi.mock(
4347
'@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/long-input/long-input',
4448
() => ({ LongInput: mocks.longInput })

0 commit comments

Comments
 (0)