mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-11-02 13:13:20 +08:00
12 lines
440 B
TypeScript
12 lines
440 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
|
|
describe("tui attach", () => {
|
|
test("loads the TUI integration lazily", async () => {
|
|
const source = await Bun.file(new URL("../../../src/cli/cmd/attach.ts", import.meta.url)).text()
|
|
|
|
expect(source).toContain('await import("../tui/layer")')
|
|
expect(source).toMatch(/await import\(["']@\/plugin\/tui\/runtime["']\)/)
|
|
expect(source).not.toContain('import("./app")')
|
|
})
|
|
})
|