PEP-30/41/31: typecheck the e2e test's mock log access

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Асель 2026-11-14 07:23:52 +05:00
parent 53ac7efdcc
commit 12d8fea4c2

View File

@ -19,7 +19,7 @@ before(async () => {
});
after(teardown);
const argvOf = (e: { argv?: unknown }) => (e.argv as string[]) ?? [];
const argvOf = (e: object) => ((e as { argv?: string[] }).argv ?? []);
const flag = (argv: string[], name: string) => {
const i = argv.indexOf(name);
return i >= 0 ? argv[i + 1] : undefined;