Skip to content

Commit

Permalink
improve error msg: Please provide features or featuresRoot option
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Nov 22, 2024
1 parent 989b312 commit 1f38a73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1f38a73

Please sign in to comment.