@@ -80,7 +80,7 @@ describe('module remove', () => {
8080await removeCommand . setup ( {
8181args : {
8282cwd : '/fake-dir' ,
83- _ : [ 'content' ] ,
83+ moduleName : [ 'content' ] ,
8484} ,
8585} )
8686
@@ -113,7 +113,7 @@ describe('module remove', () => {
113113} ] )
114114
115115const removeCommand = await ( commands as CommandsType ) . subCommands . remove ( )
116- await removeCommand . setup ( { args : { cwd : '/fake-dir' , skipConfig : true , _ : [ 'example-module' ] } } )
116+ await removeCommand . setup ( { args : { cwd : '/fake-dir' , skipConfig : true , moduleName : [ 'example-module' ] } } )
117117
118118expect ( removeDependency ) . toHaveBeenCalledWith ( [ 'example' ] , expect . objectContaining ( { cwd : '/fake-dir' } ) )
119119} )
@@ -123,7 +123,7 @@ describe('module remove', () => {
123123await removeCommand . setup ( {
124124args : {
125125cwd : '/fake-dir' ,
126- _ : [ '@nuxt/content' ] ,
126+ moduleName : [ '@nuxt/content' ] ,
127127} ,
128128} )
129129
@@ -141,7 +141,7 @@ describe('module remove', () => {
141141await removeCommand . setup ( {
142142args : {
143143cwd : '/fake-dir' ,
144- _ : [ ] ,
144+ moduleName : [ ] ,
145145} ,
146146} )
147147
@@ -157,7 +157,7 @@ describe('module remove', () => {
157157await removeCommand . setup ( {
158158args : {
159159cwd : '/fake-dir' ,
160- _ : [ ] ,
160+ moduleName : [ ] ,
161161} ,
162162} )
163163
@@ -171,7 +171,7 @@ describe('module remove', () => {
171171args : {
172172cwd : '/fake-dir' ,
173173skipInstall : true ,
174- _ : [ '@nuxt/content' ] ,
174+ moduleName : [ '@nuxt/content' ] ,
175175} ,
176176} )
177177
@@ -185,7 +185,7 @@ describe('module remove', () => {
185185await expect ( removeCommand . setup ( {
186186args : {
187187cwd : '/fake-dir' ,
188- _ : [ '@nuxt/content' ] ,
188+ moduleName : [ '@nuxt/content' ] ,
189189} ,
190190} ) ) . rejects . toThrow ( 'process.exit unexpectedly called with "1"' )
191191
@@ -198,7 +198,7 @@ describe('module remove', () => {
198198args : {
199199cwd : '/fake-dir' ,
200200skipConfig : true ,
201- _ : [ '@nuxt/content' ] ,
201+ moduleName : [ '@nuxt/content' ] ,
202202} ,
203203} )
204204
@@ -215,7 +215,7 @@ describe('module remove', () => {
215215await removeCommand . setup ( {
216216args : {
217217cwd : '/fake-dir' ,
218- _ : [ '@nuxt/content' ] ,
218+ moduleName : [ '@nuxt/content' ] ,
219219} ,
220220} )
221221
@@ -239,7 +239,7 @@ describe('module remove', () => {
239239await removeCommand . setup ( {
240240args : {
241241cwd : '/fake-dir' ,
242- _ : [ '@vee-validate/nuxt' ] ,
242+ moduleName : [ '@vee-validate/nuxt' ] ,
243243} ,
244244} )
245245
@@ -265,7 +265,7 @@ describe('module remove', () => {
265265) )
266266
267267const removeCommand = await ( commands as CommandsType ) . subCommands . remove ( )
268- await removeCommand . setup ( { args : { cwd : '/fake-dir' , _ : [ '@example/nuxt' ] } } )
268+ await removeCommand . setup ( { args : { cwd : '/fake-dir' , moduleName : [ '@example/nuxt' ] } } )
269269
270270expect ( confirm ) . not . toHaveBeenCalled ( )
271271expect ( removeDependency ) . toHaveBeenCalledWith ( [ '@example/nuxt' ] , expect . objectContaining ( { cwd : '/fake-dir' } ) )
@@ -288,7 +288,7 @@ describe('module remove', () => {
288288await removeCommand . setup ( {
289289args : {
290290cwd : '/fake-dir' ,
291- _ : [ '@vee-validate/nuxt' ] ,
291+ moduleName : [ '@vee-validate/nuxt' ] ,
292292} ,
293293} )
294294
@@ -323,7 +323,7 @@ describe('module remove', () => {
323323} )
324324
325325const removeCommand = await ( commands as CommandsType ) . subCommands . remove ( )
326- await removeCommand . setup ( { args : { cwd : '/fake-dir' , _ : [ '@vee-validate/nuxt' ] } } )
326+ await removeCommand . setup ( { args : { cwd : '/fake-dir' , moduleName : [ '@vee-validate/nuxt' ] } } )
327327
328328expect ( peak ) . toBeGreaterThan ( 1 )
329329} )
@@ -351,7 +351,7 @@ describe('module remove', () => {
351351await removeCommand . setup ( {
352352args : {
353353cwd : '/fake-dir' ,
354- _ : [ '@vee-validate/nuxt' ] ,
354+ moduleName : [ '@vee-validate/nuxt' ] ,
355355} ,
356356} )
357357
0 commit comments