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

Function testCliFor

packages/tools/docgen/test/Configuration.test.ts:95–103  ·  view source on GitHub ↗
(
  program: Effect.Effect<void, never, Configuration.Configuration | Domain.Process>
)

Source from the content-addressed store, hash-verified

93 )
94
95const testCliFor = (
96 program: Effect.Effect<void, never, Configuration.Configuration | Domain.Process>
97) => {
98 const command = CLI.docgenCommand.pipe(
99 Command.withHandler(() => program),
100 Command.provideEffect(Configuration.Configuration, CLI.loadConfiguration)
101 )
102 return Command.runWith(command, { version: "v1.0.0" })
103}
104
105describe("Configuration", () => {
106 it.effect("should use the default configuration if no configuration is provided", () => {

Callers 1

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected