MCPcopy Index your code
hub / github.com/deepnote/deepnote / createMockIntegration

Function createMockIntegration

packages/cli/src/commands/integrations.test.ts:318–335  ·  view source on GitHub ↗
(overrides: Partial<ApiIntegration> = {})

Source from the content-addressed store, hash-verified

316
317 // Helper to create mock API integrations
318 function createMockIntegration(overrides: Partial<ApiIntegration> = {}): ApiIntegration {
319 return {
320 id: 'test-id-123',
321 name: 'Test Database',
322 type: 'pgsql',
323 metadata: {
324 host: 'localhost',
325 database: 'test-database',
326 user: 'test-user',
327 password: 'secret123',
328 },
329 is_public: false,
330 created_at: '2024-01-01T00:00:00Z',
331 updated_at: '2024-01-01T00:00:00Z',
332 federated_auth_method: null,
333 ...overrides,
334 }
335 }
336
337 // Helper to run the pull command
338 async function runPullCommand(args: string[] = []): Promise<void> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected