test(ai): add scoped test LLM (#39223)

This commit is contained in:
Kit Langton 2026-07-28 12:41:09 -04:00 committed by GitHub
commit fb975eeb7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 936 additions and 994 deletions

View file

@ -19,6 +19,7 @@ import {
OpenResponses,
} from "@opencode-ai/ai/protocols"
import * as AnthropicMessages from "@opencode-ai/ai/protocols/anthropic-messages"
import { TestLLM } from "@opencode-ai/ai/testing"
describe("public exports", () => {
test("root exposes app-facing runtime APIs", () => {
@ -28,6 +29,7 @@ describe("public exports", () => {
expect(ImageInput.bytes).toBeFunction()
expect(Provider.make).toBeFunction()
expect(ProviderSubpath.make).toBe(Provider.make)
expect(TestLLM.layer).toBeFunction()
})
test("route barrel exposes route-authoring APIs", () => {