@@ -80,7 +80,7 @@ test('createWebdriverIO with Yarn', async () => {
8080 )
8181 expect ( runProgram ) . toBeCalledWith (
8282 'yarn' ,
83- [ 'exec' , 'wdio' , 'config' ] ,
83+ [ 'exec' , 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
8484 expect . any ( Object )
8585 )
8686 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -98,7 +98,7 @@ test('createWebdriverIO with NPM', async () => {
9898 )
9999 expect ( runProgram ) . toBeCalledWith (
100100 'npx' ,
101- [ 'wdio' , 'config' ] ,
101+ [ 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
102102 expect . any ( Object )
103103 )
104104 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -116,7 +116,7 @@ test('createWebdriverIO with pnpm', async () => {
116116 )
117117 expect ( runProgram ) . toBeCalledWith (
118118 'pnpm' ,
119- [ 'exec' , 'wdio' , 'config' ] ,
119+ [ 'exec' , 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
120120 expect . any ( Object )
121121 )
122122 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -134,7 +134,7 @@ test('createWebdriverIO with bun', async () => {
134134 )
135135 expect ( runProgram ) . toBeCalledWith (
136136 'bunx' ,
137- [ 'wdio' , 'config' ] ,
137+ [ 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
138138 expect . any ( Object )
139139 )
140140 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -152,7 +152,7 @@ test('creates a directory if it does not exist', async () => {
152152 )
153153 expect ( runProgram ) . toBeCalledWith (
154154 'npx' ,
155- [ 'wdio' , 'config' ] ,
155+ [ 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
156156 expect . any ( Object )
157157 )
158158 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -166,7 +166,7 @@ test('does not install the @wdio/cli package when the @wdio/cli package is alrea
166166 await createWebdriverIO ( { npmTag : 'latest' } as ProgramOpts )
167167 expect ( runProgram ) . toBeCalledWith (
168168 'npx' ,
169- [ 'wdio' , 'config' ] ,
169+ [ 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
170170 expect . any ( Object )
171171 )
172172 expect ( runProgram ) . toBeCalledTimes ( 1 )
@@ -185,7 +185,7 @@ test('does not install the @wdio/cli package when the @wdio/cli package is alrea
185185 await createWebdriverIO ( { npmTag : 'latest' } as ProgramOpts )
186186 expect ( runProgram ) . toBeCalledWith (
187187 'npx' ,
188- [ 'wdio' , 'config' ] ,
188+ [ 'wdio' , 'config' , '--npm-tag' , 'latest' ] ,
189189 expect . any ( Object )
190190 )
191191 expect ( runProgram ) . toBeCalledTimes ( 1 )
@@ -203,7 +203,7 @@ test('runs the wdio config command with --yes when the yes option is set to true
203203 )
204204 expect ( runProgram ) . toBeCalledWith (
205205 'npx' ,
206- [ 'wdio' , 'config' , '--yes' ] ,
206+ [ 'wdio' , 'config' , '--yes' , '--npm-tag' , 'latest' ] ,
207207 expect . any ( Object )
208208 )
209209 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -222,7 +222,7 @@ test('does create a package.json to be used by the wdio config command when one
222222 )
223223 expect ( runProgram ) . toBeCalledWith (
224224 'npx' ,
225- [ 'wdio' , 'config' ] ,
225+ [ 'wdio' , 'config' , '--npm-tag' , 'next' ] ,
226226 expect . any ( Object )
227227 )
228228 expect ( runProgram ) . toBeCalledTimes ( 2 )
@@ -244,7 +244,7 @@ test('installs the next version when the npmTag option is set to "next"', async
244244 )
245245 expect ( runProgram ) . toBeCalledWith (
246246 'npx' ,
247- [ 'wdio' , 'config' ] ,
247+ [ 'wdio' , 'config' , '--npm-tag' , 'next' ] ,
248248 expect . any ( Object )
249249 )
250250 expect ( runProgram ) . toBeCalledTimes ( 2 )
0 commit comments