@@ -158,7 +158,7 @@ QUnit.module('codemod-cli', function (hooks) {
158158 ] ) ;
159159 } ) ;
160160
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 ) {
162162 let result = await execa ( EXECUTABLE_PATH , [
163163 'generate' ,
164164 'codemod' ,
@@ -259,8 +259,21 @@ QUnit.module('codemod-cli', function (hooks) {
259259 } ) ;
260260
261261 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+ ] ) ;
264277
265278 let result = await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
266279 assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
@@ -450,11 +463,18 @@ QUnit.module('codemod-cli', function (hooks) {
450463 foo : { 'something.js' : 'let blah = bar' , 'other.js' : 'let blah = bar' } ,
451464 } ) ;
452465
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+ ) ;
456473
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+ ] ) ;
458478
459479 assert . deepEqual ( userProject . read ( ) , {
460480 foo : {
0 commit comments