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

Function createTestContext

apps/sim/executor/variables/resolvers/env.test.ts:9–15  ·  view source on GitHub ↗

* Creates a minimal ResolutionContext for testing. * The EnvResolver only uses context.executionContext.environmentVariables.

(environmentVariables: Record<string, string>)

Source from the content-addressed store, hash-verified

7 * The EnvResolver only uses context.executionContext.environmentVariables.
8 */
9function createTestContext(environmentVariables: Record<string, string>): ResolutionContext {
10 return {
11 executionContext: { environmentVariables },
12 executionState: {},
13 currentNodeId: 'test-node',
14 } as ResolutionContext
15}
16
17describe('EnvResolver', () => {
18 describe('canResolve', () => {

Callers 1

env.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected