refactor(core): move more tests to nodes (#34248)

This commit is contained in:
James Long
2026-06-27 18:10:07 +00:00
committed by GitHub
parent 6248542c49
commit a31698f99b
10 changed files with 56 additions and 52 deletions
@@ -6,9 +6,10 @@ import { Effect, Exit, Stream } from "effect"
import type * as PlatformError from "effect/PlatformError"
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"
import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner"
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
import { testEffect } from "../lib/effect"
const live = CrossSpawnSpawner.defaultLayer
const live = LayerNode.compile(CrossSpawnSpawner.node)
const fx = testEffect(live)
function js(code: string, opts?: ChildProcess.CommandOptions) {