fix(ci): type workflow fixture search safely

This commit is contained in:
Tianyi Cui
2026-08-10 23:55:27 +08:00
parent 3716459223
commit e9a3a38873
+3 -1
View File
@@ -140,7 +140,9 @@ describe('Git hooks', () => {
if (!isRecord(hook) || !Array.isArray(hook.jobs)) {
throw new TypeError(`lefthook must define ${hookName} jobs`)
}
const pairing = hook.jobs.find(job => isRecord(job) && job.name === 'translation pairing (staged records)')
const pairing: unknown = hook.jobs.find(
(job: unknown) => isRecord(job) && job.name === 'translation pairing (staged records)',
)
expect(pairing).toMatchObject({ exclude: ['.agents/notes/archived/**'] })
}