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

Function makeConfig

apps/sim/lib/workspace-events/no-activity.test.ts:43–57  ·  view source on GitHub ↗
(overrides: Partial<SimSubscriptionConfig> = {})

Source from the content-addressed store, hash-verified

41import type { SimSubscriptionConfig } from '@/lib/workspace-events/types'
42
43function makeConfig(overrides: Partial<SimSubscriptionConfig> = {}): SimSubscriptionConfig {
44 return {
45 eventType: 'no_activity',
46 workflowIds: [],
47 consecutiveFailures: 3,
48 failureRatePercent: 50,
49 windowHours: 24,
50 durationThresholdMs: 30000,
51 latencySpikePercent: 100,
52 costThresholdCredits: 200,
53 errorCountThreshold: 10,
54 inactivityHours: 24,
55 ...overrides,
56 }
57}
58
59/** Flattens nested and/or condition trees from the drizzle operator mocks. */
60function flattenCondition(condition: unknown): unknown[] {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected