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.
This commit is contained in:
Peter Evans 2026-01-21 17:33:33 +00:00
parent 4924300074
commit 2df30281e1

View file

@ -82,7 +82,7 @@ describe('git-config-helper integration tests', () => {
const includeIfKeysAfter = await git.tryGetConfigKeys( const includeIfKeysAfter = await git.tryGetConfigKeys(
'^includeIf\\.gitdir:' '^includeIf\\.gitdir:'
) )
const credentialIncludes = [] const credentialIncludes: string[] = []
for (const key of includeIfKeysAfter) { for (const key of includeIfKeysAfter) {
const values = await git.tryGetConfigValues(key) const values = await git.tryGetConfigValues(key)
for (const value of values) { for (const value of values) {