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

Function runWith

packages/effect/test/FileSystem.test-utils.ts:23–24  ·  view source on GitHub ↗
(layer: Layer.Layer<Fs.FileSystem, E>)

Source from the content-addressed store, hash-verified

21 format === "gitignore" ? IgnoreFile.gitignore(source) : Result.getOrThrow(IgnoreFile.dockerignore(source))
22
23const runWith = <E>(layer: Layer.Layer<Fs.FileSystem, E>) => <E2, A>(self: Effect.Effect<A, E2, Fs.FileSystem>) =>
24 Effect.runPromise(Effect.provide(self, layer))
25
26export const testLayer = <E>(layer: Layer.Layer<Fs.FileSystem, E>, options: TestLayerOptions = {}) => {
27 const runPromise = runWith(layer)

Callers 2

testLayerFunction · 0.70
testGlobFunction · 0.70

Calls 1

provideMethod · 0.45

Tested by

no test coverage detected