Skip to content

Commit 9cbbee2

Browse files
committed
test(cli): keep acp off the tui package
1 parent b68ef6f commit 9cbbee2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/cli/test/import-boundaries.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ describe("CLI frontend import boundaries", () => {
1515
expect(imports).toEqual([])
1616
})
1717

18-
test("keeps ACP and its tests off the promise client", async () => {
18+
test("keeps ACP and its tests off the promise client and ACP off the TUI", async () => {
1919
const glob = new Bun.Glob("{src,test}/acp/**/*.ts")
2020
const imports: string[] = []
21+
const tui: string[] = []
2122
for await (const file of glob.scan({ cwd: path.join(root, "packages/cli") })) {
2223
const source = await Bun.file(path.join(root, "packages/cli", file)).text()
2324
if (/["']@opencode\/client(?:\/promise(?:\/[^"']*)?|\/service)?["']/.test(source)) imports.push(file)
25+
if (file.startsWith("src/") && /["']@opencode\/tui(?:\/[^"']*)?["']/.test(source)) tui.push(file)
2426
}
2527
expect(imports).toEqual([])
28+
expect(tui).toEqual([])
2629
})
2730

2831
test("exposes only the intentional package entrypoints", async () => {

0 commit comments

Comments
 (0)