@@ -158,7 +158,7 @@ QUnit.module('codemod-cli', function (hooks) {
158
158
] ) ;
159
159
} ) ;
160
160
161
- QUnit . test ( 'should generate a codemod in a custom directory' , async function ( assert ) {
161
+ QUnit . test ( 'should generate a codemod in a custom directory' , async function ( assert ) {
162
162
let result = await execa ( EXECUTABLE_PATH , [
163
163
'generate' ,
164
164
'codemod' ,
@@ -259,8 +259,21 @@ QUnit.module('codemod-cli', function (hooks) {
259
259
} ) ;
260
260
261
261
QUnit . test ( 'should pass for an empty codemod in a custom directory' , async function ( assert ) {
262
- await execa ( EXECUTABLE_PATH , [ 'generate' , 'codemod' , 'main' , '--codemod-dir' , 'other-transform-path' ] ) ;
263
- await execa ( EXECUTABLE_PATH , [ 'generate' , 'fixture' , 'main' , 'this-dot-owner' , '--codemod-dir' , 'other-transform-path' ] ) ;
262
+ await execa ( EXECUTABLE_PATH , [
263
+ 'generate' ,
264
+ 'codemod' ,
265
+ 'main' ,
266
+ '--codemod-dir' ,
267
+ 'other-transform-path' ,
268
+ ] ) ;
269
+ await execa ( EXECUTABLE_PATH , [
270
+ 'generate' ,
271
+ 'fixture' ,
272
+ 'main' ,
273
+ 'this-dot-owner' ,
274
+ '--codemod-dir' ,
275
+ 'other-transform-path' ,
276
+ ] ) ;
264
277
265
278
let result = await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
266
279
assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
@@ -450,11 +463,18 @@ QUnit.module('codemod-cli', function (hooks) {
450
463
foo : { 'something.js' : 'let blah = bar' , 'other.js' : 'let blah = bar' } ,
451
464
} ) ;
452
465
453
- await execa ( EXECUTABLE_PATH , [ 'generate' , 'codemod' , 'secondary' , '--codemod-dir' , 'other-dir' ] , {
454
- cwd : codemodProject . path ( ) ,
455
- } ) ;
466
+ await execa (
467
+ EXECUTABLE_PATH ,
468
+ [ 'generate' , 'codemod' , 'secondary' , '--codemod-dir' , 'other-dir' ] ,
469
+ {
470
+ cwd : codemodProject . path ( ) ,
471
+ }
472
+ ) ;
456
473
457
- await execa ( codemodProject . path ( 'bin/cli.js' ) , [ codemodProject . path ( './other-dir/secondary/index.js' ) , 'foo/*thing.js' ] ) ;
474
+ await execa ( codemodProject . path ( 'bin/cli.js' ) , [
475
+ codemodProject . path ( './other-dir/secondary/index.js' ) ,
476
+ 'foo/*thing.js' ,
477
+ ] ) ;
458
478
459
479
assert . deepEqual ( userProject . read ( ) , {
460
480
foo : {
0 commit comments