perf: don't use await inside loops (#6617)

This commit is contained in:
Zoltan Kochan
2023-06-05 12:12:47 +03:00
committed by GitHub
parent f870fa2af4
commit 4b97f1f07a
41 changed files with 326 additions and 264 deletions

View File

@@ -244,6 +244,7 @@ test.each([
// shouldn't affect its arg parsing. Test both scenarios for good measure.
const input = [...(testWithCommandFallback ? [] : ['run']), ...testInput.split(' ')]
// eslint-disable-next-line no-await-in-loop
const { options, cmd, params, fallbackCommandUsed } = await parseCliArgs({
...DEFAULT_OPTS,
fallbackCommand: 'run',