From 2df30281e153c8ff4f2f6cbbd496d88b2ca51787 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:33:33 +0000 Subject: [PATCH] fix: add type annotation to fix TS2345 error in integration test The credentialIncludes array was missing a type annotation, causing TypeScript to infer it as never[] and reject string pushes. --- __test__/git-config-helper.int.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__test__/git-config-helper.int.test.ts b/__test__/git-config-helper.int.test.ts index 1f6a8d1..8a53c19 100644 --- a/__test__/git-config-helper.int.test.ts +++ b/__test__/git-config-helper.int.test.ts @@ -82,7 +82,7 @@ describe('git-config-helper integration tests', () => { const includeIfKeysAfter = await git.tryGetConfigKeys( '^includeIf\\.gitdir:' ) - const credentialIncludes = [] + const credentialIncludes: string[] = [] for (const key of includeIfKeysAfter) { const values = await git.tryGetConfigValues(key) for (const value of values) {