From 1f38a73109dd9480b74ea56d5640f8763e32c8ce Mon Sep 17 00:00:00 2001 From: Vitaliy Potapov Date: Fri, 22 Nov 2024 14:14:36 +0400 Subject: [PATCH] improve error msg: Please provide features or featuresRoot option --- src/config/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/index.ts b/src/config/index.ts index ea0aee33..fcd0e604 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -43,7 +43,8 @@ function getConfig(configDir: string, inputConfig: BDDInputConfig): BDDConfig { const config = Object.assign({}, defaults, removeUndefined(inputConfig)); const features = config.features || config.paths || config.featuresRoot; - if (!features) throw new Error(`Please provide 'features' option in defineBddConfig()`); + if (!features) + throw new Error(`Please provide 'features' or 'featuresRoot' option in defineBddConfig()`); // Currently steps can be empty: e.g. when decorator steps loaded via importTestFrom // After removing importTestFrom we should throw error for missing steps as well.