refactor(core): convert opencode tests to nodes (#34453)
This commit is contained in:
parent
b10d617c80
commit
bc5ce5eab1
1 changed files with 112 additions and 106 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { afterEach, expect } from "bun:test"
|
||||
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
|
||||
import { FSUtil } from "@opencode-ai/core/fs-util"
|
||||
import { Effect } from "effect"
|
||||
import { fileURLToPath } from "url"
|
||||
|
|
@ -6,7 +7,7 @@ import { InstanceRef } from "../../src/effect/instance-ref"
|
|||
import { disposeAllInstances, TestInstance } from "../fixture/fixture"
|
||||
import { testEffect } from "../lib/effect"
|
||||
|
||||
const it = testEffect(FSUtil.defaultLayer)
|
||||
const it = testEffect(LayerNode.compile(FSUtil.node))
|
||||
|
||||
afterEach(async () => {
|
||||
await disposeAllInstances()
|
||||
|
|
|
|||
Loading…
Reference in a new issue