refactor(core): convert more tests to layer nodes

This commit is contained in:
James Long 2026-06-28 23:53:07 -04:00
commit b9fa63a0bc
20 changed files with 174 additions and 158 deletions

View file

@ -1,5 +1,6 @@
import { describe, expect } from "bun:test"
import { Cause, Effect, Exit, Schema, Scope } from "effect"
import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder"
import { SystemContext } from "@opencode-ai/core/system-context"
import { SystemContextRegistry } from "@opencode-ai/core/system-context/registry"
import { testEffect } from "../lib/effect"
@ -17,7 +18,7 @@ const entry = (key: string, text: string, sourceKey = key) => ({
),
})
const it = testEffect(SystemContextRegistry.layer)
const it = testEffect(AppNodeBuilder.build(SystemContextRegistry.node))
describe("SystemContextRegistry", () => {
it.effect("loads empty system context when there are no entries", () =>