Update parent-folder-detection.test.ts to use the new mock adapter pattern (createMockVaultAdapter, createMockFileManagerAdapter) instead of manually mocking Obsidian API objects. Key changes: - Replace manual vault/app mocks with adapter helpers - Use createMockTFile and createMockTFolder for consistent fixtures - Fix mock reference synchronization with getter pattern for App.vault - Standardize all mock reassignments to use jest.fn() methods - Update all 14 tests to properly reassign mocks in test setup This resolves all 7 failing tests and improves test maintainability by using consistent mock patterns across the test suite. All tests passing: 14/14 in parent-folder-detection.test.ts
11 KiB
11 KiB