From 78101a92b6a32769d692d35b365d0c78add46cd0 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Mon, 13 Nov 2023 07:54:42 -0600 Subject: [PATCH] feat: default testlevel if tests are provided --- src/utils/flags.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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), });