Refactor git subcommands to accept a git instance

This commit is contained in:
Alex Gleason committed 2025-09-14 17:15:07 -05:00
1 parent 772a2f424b
commit 1ab895bd59
23 files changed
+581 -413

No files matched your search

+3 -1
View File
@@ -1,4 +1,5 @@
import { describe, it, expect, beforeEach, vi } from 'vitest';
import { Git } from '../git';
import { GitCommand } from './git';
import type { JSRuntimeFS } from '../JSRuntime';
@@ -39,7 +40,8 @@ describe('GitCommand', () => {
beforeEach(() => {
mockFS = createMockFS();
gitCommand = new GitCommand(mockFS);
const git = new Git(mockFS);
gitCommand = new GitCommand({ git, fs: mockFS, cwd: testCwd });
});
it('should have correct command properties', () => {