MCPcopy
hub / github.com/coder/mux / createStore

Function createStore

src/browser/stores/GitStatusStore.test.ts:173–184  ·  view source on GitHub ↗
(
  runtimeStatusStore?: Pick<RuntimeStatusStore, "getStatus" | "subscribeKey">
)

Source from the content-addressed store, hash-verified

171}
172
173function 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
186describe("GitStatusStore", () => {
187 let store: GitStatusStore;

Callers 1

Calls 1

setClientMethod · 0.95

Tested by

no test coverage detected