Skip to content

Commit 67bfa39

Browse files
committed
Remove spurious mocks
1 parent cf156c7 commit 67bfa39

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/core/prompts/__tests__/system.spec.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
// npx vitest core/prompts/__tests__/system.spec.ts
22

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
253
vi.mock("../sections/system-info", () => ({
264
getSystemInfoSection: vi.fn().mockImplementation((cwd: string) => {
275
return `====

0 commit comments

Comments
 (0)