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

Function withFormatter

packages/effect/test/cli/Help.test.ts:48–49  ·  view source on GitHub ↗
(options: Parameters<typeof CliOutput.defaultFormatter>[0])

Source from the content-addressed store, hash-verified

46)
47
48const withFormatter = (options: Parameters<typeof CliOutput.defaultFormatter>[0]) =>
49 Effect.provide(Layer.merge(TestLayer, CliOutput.layer(CliOutput.defaultFormatter({ colors: false, ...options }))))
50
51describe("CliOutput.displayWidth", { concurrent: false }, () => {
52 it("constructs the segmenter only on the first width calculation", async () => {

Callers 1

Help.test.tsFile · 0.85

Calls 3

mergeMethod · 0.65
provideMethod · 0.45
layerMethod · 0.45

Tested by

no test coverage detected