Skip to content

Commit dd6594c

Browse files
olaservoclaude
andcommitted
fix(filesystem): use vi.fn() instead of jest.fn() in test
The project uses Vitest, not Jest. Replace jest.fn() with vi.fn() to fix the ReferenceError in the relative path resolution test. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 39a1db9 commit dd6594c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/filesystem/__tests__/lib.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe('Lib Functions', () => {
211211

212212
// Mock process.cwd to return a directory outside allowed directories
213213
const disallowedCwd = process.platform === 'win32' ? 'C:\\Windows\\System32' : '/root';
214-
(process as any).cwd = jest.fn(() => disallowedCwd);
214+
(process as any).cwd = vi.fn(() => disallowedCwd);
215215

216216
try {
217217
const result = await validatePath(relativePath);

0 commit comments

Comments
 (0)