mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-06-02 05:01:54 -04:00
- Fixed fs/promises mocks using vi.hoisted() for proper hoisting - Fixed child_process spawn mocks with proper default exports - Updated test cases to use direct mock function references - All 55 tests now passing successfully The main issues were: 1. Mock functions not properly hoisted causing reference errors 2. Missing default exports in module mocks 3. Incorrect mock function usage in test assertions Tests now properly mock: - readdir, stat, readFile from fs/promises - spawn from child_process - localScriptsService.getScriptBySlug