diff --git a/benchmark/benchmark.ts b/benchmark/benchmark.ts index 32e1097d74..c4bd4870d3 100644 --- a/benchmark/benchmark.ts +++ b/benchmark/benchmark.ts @@ -141,7 +141,7 @@ async function runBenchmark (config: Config) { function getConfig (): Config { const base = baseConfig; - const args = yargs(hideBin(process.argv)) as unknown as Record; + const args = yargs(hideBin(process.argv)).argv as Record; if (typeof args.testFunction === 'string') { baseConfig.options.testFunction = args.testFunction as ConfigOptions['testFunction']; diff --git a/tests/helper/args.ts b/tests/helper/args.ts index accaf7d0e8..aadddf9e5b 100644 --- a/tests/helper/args.ts +++ b/tests/helper/args.ts @@ -1,7 +1,7 @@ import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; -const args = yargs(hideBin(process.argv)) as { +const args = yargs(hideBin(process.argv)).argv as { language?: string | string[]; update?: boolean; };