Files
Roo-Code/webview-ui/src/__mocks__/vscrui.ts
sam hoang 12dd54671a refactor: migrate from CRA to Vite and improve testing
Replace Create React App with Vite build system
Add ESLint configuration and improve TypeScript types
Create VSCode UI component mocks for better testing
Update test files with proper async handling
Add Tailwind CSS integration
Fix accessibility by adding ARIA roles
2025-01-29 21:15:28 +07:00

15 lines
521 B
TypeScript

import React from "react"
export const Checkbox = ({ children, checked, onChange }: any) =>
React.createElement("div", { "data-testid": "mock-checkbox", onClick: onChange }, children)
export const Dropdown = ({ children, value, onChange }: any) =>
React.createElement("div", { "data-testid": "mock-dropdown", onClick: onChange }, children)
export const Pane = ({ children }: any) => React.createElement("div", { "data-testid": "mock-pane" }, children)
export type DropdownOption = {
label: string
value: string
}