(
fileTreeLoaded: boolean,
fileTreeLength: number,
)
| 66 | test('should only trigger when fileTreeLoaded is true AND fileTree is empty', () => { |
| 67 | // Simulate the detection logic from chat.tsx |
| 68 | const simulateDetection = ( |
| 69 | fileTreeLoaded: boolean, |
| 70 | fileTreeLength: number, |
| 71 | ) => { |
| 72 | if (fileTreeLoaded && fileTreeLength === 0) { |
| 73 | useChatStore.getState().setActiveTopBanner('homeDir') |
| 74 | useChatStore.getState().setInputMode('homeDir') |
| 75 | return true |
| 76 | } |
| 77 | return false |
| 78 | } |
| 79 | |
| 80 | // Reset state |
| 81 | useChatStore.getState().reset() |
no outgoing calls
no test coverage detected