Skip to content

Commit

Permalink
fix: Launcher is not a constructor webdriverio#398
Browse files Browse the repository at this point in the history
* The wdio/cli package no longer has a default export, so using the named export.
  • Loading branch information
NBS-LLC committed Apr 30, 2023
1 parent bf398da commit 5f501f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builders/webdriverio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function execute(
options: Options,
context: BuilderContext,
): Promise<BuilderOutput> {
const Launcher = require(path.join(process.cwd(), 'node_modules', '@wdio', 'cli')).default
const Launcher = require(path.join(process.cwd(), 'node_modules', '@wdio', 'cli')).Launcher

// ensure that only one of these options is used
if (options.devServerTarget && options.baseUrl) {
Expand Down

0 comments on commit 5f501f3

Please sign in to comment.