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

This commit is contained in:
James Long 2026-06-27 14:10:07 -04:00 committed by GitHub
commit a31698f99b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 56 additions and 52 deletions

View file

@ -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) {