chore: generate
This commit is contained in:
parent
84336e4f91
commit
846d548154
16 changed files with 43 additions and 83 deletions
|
|
@ -206,10 +206,7 @@ const providerErrorLLM = Layer.succeed(
|
|||
),
|
||||
}),
|
||||
)
|
||||
const providerErrorEnv = LayerNode.compile(
|
||||
root,
|
||||
[...replacements, [LLM.node, providerErrorLLM]],
|
||||
)
|
||||
const providerErrorEnv = LayerNode.compile(root, [...replacements, [LLM.node, providerErrorLLM]])
|
||||
const itProviderError = testEffect(providerErrorEnv)
|
||||
|
||||
const fragmentFailureLLM = Layer.succeed(
|
||||
|
|
@ -226,10 +223,7 @@ const fragmentFailureLLM = Layer.succeed(
|
|||
),
|
||||
}),
|
||||
)
|
||||
const fragmentFailureEnv = LayerNode.compile(
|
||||
root,
|
||||
[...replacements, [LLM.node, fragmentFailureLLM]],
|
||||
)
|
||||
const fragmentFailureEnv = LayerNode.compile(root, [...replacements, [LLM.node, fragmentFailureLLM]])
|
||||
const itFragmentFailure = testEffect(fragmentFailureEnv)
|
||||
|
||||
const boot = Effect.fn("test.boot")(function* () {
|
||||
|
|
|
|||
|
|
@ -87,14 +87,11 @@ const root = LayerNode.group([
|
|||
LayerNode.make({ service: TestLLMServer, layer: TestLLMServer.layer, deps: [] }),
|
||||
])
|
||||
const it = testEffect(
|
||||
LayerNode.compile(
|
||||
root,
|
||||
[
|
||||
[MCP.node, mcp],
|
||||
[LSP.node, lsp],
|
||||
[RuntimeFlags.node, RuntimeFlags.layer({ experimentalEventSystem: true })],
|
||||
],
|
||||
),
|
||||
LayerNode.compile(root, [
|
||||
[MCP.node, mcp],
|
||||
[LSP.node, lsp],
|
||||
[RuntimeFlags.node, RuntimeFlags.layer({ experimentalEventSystem: true })],
|
||||
]),
|
||||
)
|
||||
|
||||
const providerCfg = (url: string) => ({
|
||||
|
|
|
|||
|
|
@ -35,10 +35,7 @@ const none = HttpClient.make(() => Effect.die("unexpected http call"))
|
|||
|
||||
function requestLayer(client: HttpClient.HttpClient) {
|
||||
const replacement = [httpClient, Layer.succeed(HttpClient.HttpClient, client)] as const
|
||||
return LayerNode.compile(
|
||||
LayerNode.group([ShareNext.node, AccountRepo.node]),
|
||||
[replacement],
|
||||
)
|
||||
return LayerNode.compile(LayerNode.group([ShareNext.node, AccountRepo.node]), [replacement])
|
||||
}
|
||||
|
||||
function integrationLayer(client: HttpClient.HttpClient) {
|
||||
|
|
|
|||
|
|
@ -55,12 +55,7 @@ const replacements = [
|
|||
] as const
|
||||
|
||||
const it = testEffect(LayerNode.compile(root, replacements))
|
||||
const withBrokenPlugin = testEffect(
|
||||
LayerNode.compile(
|
||||
root,
|
||||
[...replacements, [Plugin.node, brokenPluginLayer]],
|
||||
),
|
||||
)
|
||||
const withBrokenPlugin = testEffect(LayerNode.compile(root, [...replacements, [Plugin.node, brokenPluginLayer]]))
|
||||
|
||||
afterEach(async () => {
|
||||
await disposeAllInstances()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue