Compare commits

..

1 Commits

Author SHA1 Message Date
James Long 5a3d09c17d test(core): simplify search layer wiring 2026-06-20 18:17:21 -04:00
2 changed files with 3 additions and 3 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.buildLayer(Ripgrep.node))
const withTmp = <A, E, R>(f: (directory: AbsolutePath) => Effect.Effect<A, E, R>) =>
Effect.acquireRelease(
+1 -2
View File
@@ -4,13 +4,12 @@ import fs from "fs/promises"
import path from "path"
import { Effect } from "effect"
import { Git } from "@opencode-ai/core/git"
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
import { AbsolutePath } from "@opencode-ai/core/schema"
import { branch, commit, gitRemote } from "./fixture/git"
import { tmpdir } from "./fixture/tmpdir"
import { testEffect } from "./lib/effect"
const it = testEffect(LayerNode.buildLayer(Git.node))
const it = testEffect(Git.defaultLayer)
describe("Git", () => {
it.live("clones a remote and reads checkout metadata", () =>