mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-06 07:04:44 +00:00
test(core): keep supervisor reload tests offline (#46939)
This commit is contained in:
parent
1e4e9c5d85
commit
e402600d92
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ import { Plugin } from "@opencode-ai/core/plugin"
|
|||
import { SdkPlugins } from "@opencode-ai/core/plugin/sdk"
|
||||
import { AbsolutePath } from "@opencode-ai/core/schema"
|
||||
import { tempGlobalLayer } from "../fixture/global"
|
||||
import { offlineModels } from "../fixture/models"
|
||||
import { tmpdirScoped } from "../fixture/tmpdir"
|
||||
import { testEffect } from "../lib/effect"
|
||||
|
||||
|
|
@ -59,6 +60,7 @@ const instances = Layer.effect(
|
|||
})
|
||||
const bindings: LayerNode.Replacements = [
|
||||
Global.node.replace(tempGlobalLayer),
|
||||
offlineModels,
|
||||
Npm.node.replace(npmLayer),
|
||||
Watcher.node.replace(Watcher.configured({ enabled: false })),
|
||||
LocationServiceMap.node.replace(Layer.succeed(LocationServiceMap.Service, map)),
|
||||
|
|
@ -75,6 +77,7 @@ const instances = Layer.effect(
|
|||
const it = testEffect(
|
||||
AppNodeBuilder.build(LayerNode.group([Database.node, Bus.node, SdkPlugins.node, LocationServiceMap.node]), [
|
||||
Global.node.replace(tempGlobalLayer),
|
||||
offlineModels,
|
||||
LocationServiceMap.node.replace(instances),
|
||||
]),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue