Skip to content

Commit

Permalink
docs: fix wrong api example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss authored Oct 15, 2022
1 parent e84ccef commit 7f43644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/javascript_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function runTests(directory, configFile, failFast) {
// load configuration from a particular file, and override a specific option
const { runConfiguration } = await loadConfiguration({ file: configFile, provided: { failFast } }, environment)
// load the support code upfront
const support = await loadSupport(runnable, environment)
const support = await loadSupport(runConfiguration, environment)
// run cucumber, using the support code we loaded already
const { success } = await runCucumber({ ...runConfiguration, support }, environment)
return success
Expand Down

0 comments on commit 7f43644

Please sign in to comment.