mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-04 21:42:00 +00:00
test(core): simplify process layer wiring
This commit is contained in:
parent
22cc758b1a
commit
b080fe1535
1 changed files with 2 additions and 1 deletions
|
|
@ -5,10 +5,11 @@ import { tmpdir } from "node:os"
|
|||
import path from "node:path"
|
||||
import { Effect, Exit, Fiber, Stream } from "effect"
|
||||
import { ChildProcess } from "effect/unstable/process"
|
||||
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
|
||||
import { AppProcess } from "@opencode-ai/core/process"
|
||||
import { testEffect } from "../lib/effect"
|
||||
|
||||
const it = testEffect(AppProcess.defaultLayer)
|
||||
const it = testEffect(LayerNode.buildLayer(AppProcess.node))
|
||||
|
||||
const NODE = process.execPath
|
||||
const cmd = (...args: string[]) => ChildProcess.make(NODE, args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue