From 4e6fd844f48057763752c154bc6a0586a7a3fde4 Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Sun, 26 Jul 2026 00:08:29 +0700 Subject: [PATCH] fix(e2e): type the codegen-gate fixture shas so tsc -b passes The Record index type made every sha string | undefined under noUncheckedIndexedAccess, which vitest and eslint did not see but tsc -b did. Co-Authored-By: Claude Opus 4.8 --- frontend/e2e/ci-codegen-gate.unit.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/e2e/ci-codegen-gate.unit.test.ts b/frontend/e2e/ci-codegen-gate.unit.test.ts index ebcd2504..d8f96128 100644 --- a/frontend/e2e/ci-codegen-gate.unit.test.ts +++ b/frontend/e2e/ci-codegen-gate.unit.test.ts @@ -7,7 +7,7 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest'; const SCRIPT = join(__dirname, '..', '..', '.github', 'scripts', 'codegen-inputs-changed.sh'); let repo = ''; -const sha: Record = {}; +const sha = { base: '', merge: '', schema: '', unrelated: '' }; const git = (...args: string[]) => execFileSync('git', ['-C', repo, ...args], { encoding: 'utf8' }).trim();