Refactor git credentials to be an array instead of an object

This commit is contained in:
Alex Gleason committed 2025-12-20 22:49:07 -06:00
1 parent 07807ea1bf
commit fbdcd01b38
12 files changed
+598 -220

No files matched your search

+4 -4
View File
@@ -305,7 +305,7 @@ describe('Git', () => {
it('uses shakespeare.diy as default author when no Git identity is configured', async () => {
const { readGitSettings } = await import('./configUtils');
vi.mocked(readGitSettings).mockResolvedValue({
credentials: {},
credentials: [],
coAuthorEnabled: true,
});
@@ -332,7 +332,7 @@ describe('Git', () => {
it('uses custom identity when both name and email are configured', async () => {
const { readGitSettings } = await import('./configUtils');
vi.mocked(readGitSettings).mockResolvedValue({
credentials: {},
credentials: [],
name: 'John Doe',
email: '[email protected]',
coAuthorEnabled: true,
@@ -361,7 +361,7 @@ describe('Git', () => {
it('does not add co-author when coAuthorEnabled is false', async () => {
const { readGitSettings } = await import('./configUtils');
vi.mocked(readGitSettings).mockResolvedValue({
credentials: {},
credentials: [],
name: 'John Doe',
email: '[email protected]',
coAuthorEnabled: false,
@@ -390,7 +390,7 @@ describe('Git', () => {
it('respects provided author when explicitly passed', async () => {
const { readGitSettings } = await import('./configUtils');
vi.mocked(readGitSettings).mockResolvedValue({
credentials: {},
credentials: [],
name: 'John Doe',
email: '[email protected]',
coAuthorEnabled: true,