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:
parent
53ac7efdcc
commit
12d8fea4c2
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user