MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeProcess

Function makeProcess

packages/tools/docgen/test/Configuration.test.ts:74–80  ·  view source on GitHub ↗
(env: Record<string, string> = {})

Source from the content-addressed store, hash-verified

72).pipe(Layer.provide(Path.layer))
73
74const makeProcess = (env: Record<string, string> = {}) =>
75 Layer.succeed(Domain.Process, {
76 cwd: Effect.sync(() => process.cwd()),
77 platform: Effect.sync(() => process.platform),
78 argv: Effect.sync(() => process.argv),
79 env: Effect.succeed(env)
80 })
81
82const makeTestLayer = (env: Record<string, string> = {}) =>
83 Configuration.configProviderLayer.pipe(

Callers 1

makeTestLayerFunction · 0.85

Calls 2

succeedMethod · 0.45
syncMethod · 0.45

Tested by

no test coverage detected