Skip to content

Commit 4270027

Browse files
committed
fix: add VSCodeCheckbox mock to CodeIndexPopover validation tests
1 parent 8061504 commit 4270027

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webview-ui/src/components/chat/__tests__/CodeIndexPopover.validation.spec.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ vi.mock("@vscode/webview-ui-toolkit/react", () => ({
103103
{children}
104104
</a>
105105
),
106+
VSCodeCheckbox: ({ checked, onChange, children, ...rest }: any) => (
107+
<label>
108+
<input type="checkbox" checked={checked || false} onChange={(e) => onChange && onChange(e)} {...rest} />
109+
{children}
110+
</label>
111+
),
106112
}))
107113

108114
// Helper function to simulate input on form elements

0 commit comments

Comments
 (0)