Browse Source

fix(tests): add missing getCurrentRuntimePackageJsonPath mock export

The index.test.ts was mocking ./checker but didn't include getCurrentRuntimePackageJsonPath,
which cache.ts imports. This caused cache tests to fail when running the full test suite
due to module mock persistence across tests.
Alvin Real 2 days ago
parent
commit
d02fa2878b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/hooks/auto-update-checker/index.test.ts

+ 1 - 0
src/hooks/auto-update-checker/index.test.ts

@@ -11,6 +11,7 @@ mock.module('./checker', () => ({
   getCachedVersion: mock(() => null),
   getCachedVersion: mock(() => null),
   getLatestVersion: mock(async () => null),
   getLatestVersion: mock(async () => null),
   getLocalDevVersion: mock(() => null),
   getLocalDevVersion: mock(() => null),
+  getCurrentRuntimePackageJsonPath: mock(() => null),
 }));
 }));
 
 
 mock.module('./cache', () => ({
 mock.module('./cache', () => ({