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
+2 -1
View File
@@ -2,12 +2,13 @@ import { describe, expect } from "bun:test"
import fs from "fs/promises"
import path from "path"
import { Effect } from "effect"
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
import { Ripgrep } from "@opencode-ai/core/ripgrep"
import { AbsolutePath, RelativePath } from "@opencode-ai/core/schema"
import { tmpdir } from "../fixture/tmpdir"
import { testEffect } from "../lib/effect"
const it = testEffect(Ripgrep.defaultLayer)
const it = testEffect(LayerNode.compile(Ripgrep.node))
const withTmp = <A, E, R>(f: (directory: AbsolutePath) => Effect.Effect<A, E, R>) =>
Effect.acquireRelease(