Skip to content

Commit 7f5bdd0

Browse files
t3dotggclaude
andcommitted
test(server): provide config test layers in one call
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 166d7b9 commit 7f5bdd0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/server/src/config.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as NodeServices from "@effect/platform-node/NodeServices";
22
import { assert, describe, it } from "@effect/vitest";
33
import * as Effect from "effect/Effect";
4+
import * as Layer from "effect/Layer";
45

56
import * as ServerConfig from "./config.ts";
67

@@ -23,8 +24,11 @@ describe("otlpResource", () => {
2324
"from-env",
2425
);
2526
}).pipe(
26-
Effect.provide(ServerConfig.layerTest(process.cwd(), { prefix: "t3-otlp-resource-" })),
27-
Effect.provide(NodeServices.layer),
27+
Effect.provide(
28+
ServerConfig.layerTest(process.cwd(), { prefix: "t3-otlp-resource-" }).pipe(
29+
Layer.provide(NodeServices.layer),
30+
),
31+
),
2832
),
2933
);
3034
});

0 commit comments

Comments
 (0)