|
1 | 1 | import { describe, it, expect, beforeEach, afterEach, vi } from "vitest"; |
2 | 2 | import { FileStorage } from "../core/storage/index.js"; |
3 | 3 | import { runCli } from "./index.js"; |
4 | | -import { captureOutput, createTempStorage, CapturedOutput } from "./test-helpers.js"; |
| 4 | +import type { CapturedOutput } from "./test-helpers.js"; |
| 5 | +import { captureOutput, createTempStorage } from "./test-helpers.js"; |
5 | 6 |
|
6 | 7 | describe("completion command", () => { |
7 | 8 | let storage: FileStorage; |
@@ -138,15 +139,19 @@ describe("completion command", () => { |
138 | 139 | }); |
139 | 140 |
|
140 | 141 | it("fails for unsupported shell type", async () => { |
141 | | - await expect(runCli(["completion", "powershell"], { storage })).rejects.toThrow("process.exit"); |
| 142 | + await expect( |
| 143 | + runCli(["completion", "powershell"], { storage }), |
| 144 | + ).rejects.toThrow("process.exit"); |
142 | 145 |
|
143 | 146 | const err = getStderr(); |
144 | 147 | expect(err).toContain("Unsupported shell: powershell"); |
145 | 148 | expect(err).toContain("bash, zsh, fish"); |
146 | 149 | }); |
147 | 150 |
|
148 | 151 | it("fails for invalid shell name", async () => { |
149 | | - await expect(runCli(["completion", "notashell"], { storage })).rejects.toThrow("process.exit"); |
| 152 | + await expect( |
| 153 | + runCli(["completion", "notashell"], { storage }), |
| 154 | + ).rejects.toThrow("process.exit"); |
150 | 155 | expect(getStderr()).toContain("Unsupported shell: notashell"); |
151 | 156 | }); |
152 | 157 | }); |
|
0 commit comments