File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/app/src/components Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ beforeAll(async () => {
2828 } ) )
2929 mock . module ( "@opencode-ai/ui/file-icon" , ( ) => ( { FileIcon : ( ) => null } ) )
3030 mock . module ( "@opencode-ai/ui/icon" , ( ) => ( { Icon : ( ) => null } ) )
31+ mock . module ( "@opencode-ai/ui/context-menu" , ( ) => ( {
32+ ContextMenu : {
33+ Trigger : ( props : { children ?: unknown } ) => props . children ,
34+ Portal : ( props : { children ?: unknown } ) => props . children ,
35+ Content : ( props : { children ?: unknown } ) => props . children ,
36+ Item : ( props : { children ?: unknown } ) => props . children ,
37+ ItemLabel : ( props : { children ?: unknown } ) => props . children ,
38+ Separator : ( ) => null ,
39+ } ,
40+ } ) )
3141 mock . module ( "@opencode-ai/ui/tooltip" , ( ) => ( { Tooltip : ( props : { children ?: unknown } ) => props . children } ) )
3242 const mod = await import ( "./file-tree" )
3343 shouldListRoot = mod . shouldListRoot
You can’t perform that action at this time.
0 commit comments