mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 06:54:27 +00:00
- 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>
15 lines
389 B
TypeScript
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')
|
|
}
|
|
},
|
|
});
|