15 lines
506 B
TypeScript
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");
|
|
});
|
|
});
|