Skip to content

Commit 5f12e23

Browse files
committed
Fix tests
1 parent 7331726 commit 5f12e23

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

webview-ui/src/components/ui/__tests__/select-dropdown.test.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import React, { ReactNode } from "react"
1+
// npx jest webview-ui/src/components/ui/__tests__/select-dropdown.test.tsx
2+
3+
import { ReactNode } from "react"
24
import { render, screen, fireEvent } from "@testing-library/react"
35
import { SelectDropdown, DropdownOptionType } from "../select-dropdown"
46

@@ -47,6 +49,10 @@ jest.mock("../dropdown-menu", () => {
4749
),
4850

4951
DropdownMenuSeparator: () => <div data-testid="dropdown-separator" />,
52+
53+
DropdownMenuShortcut: ({ children }: { children: ReactNode }) => (
54+
<span data-testid="dropdown-shortcut">{children}</span>
55+
),
5056
}
5157
})
5258

0 commit comments

Comments
 (0)