Files
kuber/tests/command/module-graph.test.ts
T
2026-09-27 10:40:50 +00:00

15 lines
506 B
TypeScript

import { describe, expect, test } from "bun:test";
import { join } from "node:path";
describe("CLI module graph", () => {
test("does not resolve the Kubernetes client during CLI startup", () => {
const entry = join(import.meta.dir, "../../index.ts");
const probe = Bun.spawnSync([process.execPath, entry, "--help"], {
cwd: import.meta.dir,
env: process.env,
});
expect(probe.exitCode).toBe(0);
expect(new TextDecoder().decode(probe.stdout)).toContain("USAGE");
});
});