MCPcopy Index your code
hub / github.com/simstudioai/sim / baseData

Function baseData

apps/sim/lib/copilot/chat/workspace-context.test.ts:22–34  ·  view source on GitHub ↗
(overrides: Partial<WorkspaceMdData> = {})

Source from the content-addressed store, hash-verified

20import { buildWorkspaceMd, type WorkspaceMdData } from './workspace-context'
21
22function baseData(overrides: Partial<WorkspaceMdData> = {}): WorkspaceMdData {
23 return {
24 workspace: { id: 'ws-1', name: 'WS', ownerId: 'u-1' },
25 members: [],
26 workflows: [],
27 knowledgeBases: [],
28 tables: [],
29 files: [],
30 oauthIntegrations: [],
31 envVariables: [],
32 ...overrides,
33 }
34}
35
36describe('buildWorkspaceMd - workflow VFS state paths', () => {
37 // `workflows[].folderPath` arrives ALREADY per-segment percent-encoded (it is

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected