[READ-ONLY] Mirror of https://github.com/bombshell-dev/tab. shell autocompletions for javascript CLIs
4

Configure Feed

Select the types of activity you want to include in your feed.

cac tests

AmirSa12 (Nov 6, 2024, 6:56 PM +0330) 4c7b0a18 dc106b04

+3 -3
+3 -3
tests/cli.test.ts
··· 13 13 }); 14 14 } 15 15 16 - describe("CLI Completion Tests", () => { 16 + describe("CLI Completion Tests cac", () => { 17 17 it("should complete vite commands", async () => { 18 - const output = await runCommand("pnpm tsx demo.ts complete --"); 18 + const output = await runCommand("pnpm tsx demo.cac.ts complete --"); 19 19 console.log("Command Output:", output); 20 20 expect(output).toContain("src/"); 21 21 expect(output).toContain("./"); ··· 23 23 }); 24 24 25 25 it("should complete options", async () => { 26 - const output = await runCommand("pnpm tsx demo.ts complete -- --"); 26 + const output = await runCommand("pnpm tsx demo.cac.ts complete -- --"); 27 27 console.log("Command Output:", output); 28 28 expect(output).toContain("--port"); 29 29 expect(output).toContain("--config");