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