( runtimeStatusStore?: Pick<RuntimeStatusStore, "getStatus" | "subscribeKey"> )
| 171 | } |
| 172 | |
| 173 | function createStore( |
| 174 | runtimeStatusStore?: Pick<RuntimeStatusStore, "getStatus" | "subscribeKey"> |
| 175 | ): GitStatusStore { |
| 176 | const store = new GitStatusStore(runtimeStatusStore); |
| 177 | store.setClient({ |
| 178 | workspace: { |
| 179 | executeBash: mockExecuteBash, |
| 180 | getProjectGitStatuses: mockGetProjectGitStatuses, |
| 181 | }, |
| 182 | } as unknown as Parameters<GitStatusStore["setClient"]>[0]); |
| 183 | return store; |
| 184 | } |
| 185 | |
| 186 | describe("GitStatusStore", () => { |
| 187 | let store: GitStatusStore; |
no test coverage detected