test(core): cover skill directory output (#31263)

This commit is contained in:
Aiden Cline 2026-06-07 12:37:53 -05:00 committed by GitHub
parent e82542b802
commit 233427f08e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
import fs from "fs/promises"
import path from "path"
import { pathToFileURL } from "url"
import { describe, expect } from "bun:test"
import { Effect, Layer } from "effect"
import { FSUtil } from "@opencode-ai/core/fs-util"
@ -100,6 +101,9 @@ describe("SkillTool", () => {
type: "text",
value: SkillTool.toModelOutput(info, [reference]),
})
expect(SkillTool.toModelOutput(info, [reference])).toContain(
`Base directory for this skill: ${pathToFileURL(directory).href}`,
)
expect(
yield* settleTool(registry, {
sessionID,