firstsun-dev_git-files-sync/vitest.config.ts
tianyao 362def7cd3 feat: integrate SyncConflictModal into SyncManager
- Implement conflict detection in pushFile and pullFile using SHA comparison.
- Use SyncConflictModal to prompt users for manual resolution ('Use local' or 'Use remote').
- Added unit tests in sync-manager.test.ts to verify conflict handling logic.
- Fixed linting issues related to unhandled promises and mock type safety.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 16:43:10 +00:00

15 lines
389 B
TypeScript

import { defineConfig } from 'vitest/config';
// eslint-disable-next-line import/no-nodejs-modules
import * as path from 'path';
export default defineConfig({
test: {
environment: 'node',
globals: true,
setupFiles: ['./tests/setup.ts'],
alias: {
// eslint-disable-next-line no-undef
'obsidian': path.resolve(process.cwd(), './tests/setup.ts')
}
},
});