diff --git a/src/utils/flags.ts b/src/utils/flags.ts index 1215a305..cf5e962a 100644 --- a/src/utils/flags.ts +++ b/src/utils/flags.ts @@ -72,10 +72,7 @@ export const ensuredDirFlag = Flags.custom({ export const testLevelFlag = Flags.custom({ char: 'l', parse: (input) => Promise.resolve(input as TestLevel), - // eslint-disable-next-line @typescript-eslint/require-await - default: async (context) => { - if (context.flags.tests) return TestLevel.RunSpecifiedTests; - }, + default: async (context) => Promise.resolve(context.flags.tests ? TestLevel.RunSpecifiedTests : undefined), options: Object.values(TestLevel), });