We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf156c7 commit 67bfa39Copy full SHA for 67bfa39
src/core/prompts/__tests__/system.spec.ts
@@ -1,27 +1,5 @@
1
// npx vitest core/prompts/__tests__/system.spec.ts
2
3
-// Mock environment-specific values for consistent tests - MUST BE FIRST
4
-vi.mock("os", async () => {
5
- const actual = await vi.importActual("os")
6
- return {
7
- ...actual,
8
- homedir: () => "/home/user",
9
- }
10
-})
11
-
12
-vi.mock("default-shell", () => ({
13
- default: "/bin/zsh",
14
-}))
15
16
-vi.mock("os-name", () => ({
17
- default: () => "Linux",
18
19
20
-vi.mock("../../../utils/shell", () => ({
21
- getShell: () => "/bin/zsh",
22
23
24
-// Mock the system info section
25
vi.mock("../sections/system-info", () => ({
26
getSystemInfoSection: vi.fn().mockImplementation((cwd: string) => {
27
return `====
0 commit comments