mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-24 20:16:30 +00:00
fix(e2e): type the codegen-gate fixture shas so tsc -b passes
The Record<string, string> 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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ae1d600c2c
commit
4e6fd844f4
@@ -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<string, string> = {};
|
||||
const sha = { base: '', merge: '', schema: '', unrelated: '' };
|
||||
|
||||
const git = (...args: string[]) => execFileSync('git', ['-C', repo, ...args], { encoding: 'utf8' }).trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user