MCPcopy Create free account
hub / github.com/bytebase/bytebase / state

Function state

frontend/src/react/components/DatabaseSelect.test.tsx:42–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41vi.mock("@/react/stores/app", () => {
42 const state = () => ({
43 fetchDatabases: mocks.fetchDatabases,
44 workspaceResourceName: mocks.workspaceResourceName,
45 getDatabaseByName: mocks.getDatabaseByName,
46 });
47 return {
48 useAppStore: Object.assign(
49 (selector: (s: ReturnType<typeof state>) => unknown) => selector(state()),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected