Compare commits

..

1 Commits

Author SHA1 Message Date
James Long 641e3c4fa5 test(core): simplify git layer wiring 2026-06-20 18:18:20 -04:00
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -4,12 +4,13 @@ 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(Git.defaultLayer)
const it = testEffect(LayerNode.buildLayer(Git.node))
describe("Git", () => {
it.live("clones a remote and reads checkout metadata", () =>
+1 -2
View File
@@ -2,13 +2,12 @@ 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 { RelativePath } from "@opencode-ai/core/schema"
import { tmpdir } from "./fixture/tmpdir"
import { testEffect } from "./lib/effect"
const it = testEffect(LayerNode.buildLayer(Ripgrep.node))
const it = testEffect(Ripgrep.defaultLayer)
describe("Ripgrep", () => {
it.live("keeps ignored files out of catch-all find results", () =>