Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit db5119a

Browse files
(create-wdio): fix yarn plug & play when running setup (#592)
1 parent 1973581 commit db5119a

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ export async function createWebdriverIO(opts: ProgramOpts) {
8383
if (!cliInstalled) {
8484
console.log(`\nInstalling ${chalk.bold('@wdio/cli')} to initialize project...`)
8585
const args = [INSTALL_COMMAND[pm]]
86-
if (pm === 'yarn') {
87-
args.push('--exact', '--cwd', root)
88-
}
8986
if (opts.dev) {
9087
args.push(DEV_FLAG[pm])
9188
}

tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test('createWebdriverIO with Yarn', async () => {
7575
await createWebdriverIO({ npmTag: 'latest' } as ProgramOpts)
7676
expect(runProgram).toBeCalledWith(
7777
'yarn',
78-
['add', '--exact', '--cwd', expect.any(String), '@wdio/cli@latest'],
78+
['add', '@wdio/cli@latest'],
7979
expect.any(Object)
8080
)
8181
expect(runProgram).toBeCalledWith(

0 commit comments

Comments
 (0)