Skip to content

Commit a2fc305

Browse files
committed
test(core): fix layer node type expectation
1 parent 0629920 commit a2fc305

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎packages/core/test/effect/layer-node/layer-node-types.test.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ void invalidNodeReplacement
6969
// @ts-expect-error Replacement cannot introduce a new error
7070
LayerNode.compile(a, [[a, Layer.effect(A, Effect.fail(new OtherError()))]])
7171

72-
// @ts-expect-error Node replacement cannot introduce a new error
73-
const invalidNodeErrorReplacement = () =>
74-
LayerNode.compile(a, [[a, make({ service: A, layer: Layer.effect(A, Effect.fail(new OtherError())), deps: [] })]])
72+
const invalidNodeErrorReplacement = () => {
73+
return LayerNode.compile(a, [
74+
// @ts-expect-error Node replacement cannot introduce a new error
75+
[a, make({ service: A, layer: Layer.effect(A, Effect.fail(new OtherError())), deps: [] })],
76+
])
77+
}
7578
void invalidNodeErrorReplacement
7679

7780
class TagA extends Context.Service<TagA, {}>()("test/TagA") {}

0 commit comments

Comments
 (0)