@@ -39,18 +39,21 @@ describe('wire: run', () => {
3939 scriptPaths : [ 'path/to/eslint.js' , 'path/to/jest.js' ] ,
4040 expectedNodeArgs : [ '--inspect' , 'path/to/jest.js' , '-i' ] ,
4141 } ,
42- ] ) ( 'handles %j' , async ( { processArgs, scriptPaths, expectedNodeArgs } ) => {
43- process . argv = [ '' , '' , ...processArgs ]
42+ ] ) (
43+ 'handles script %j' ,
44+ async ( { processArgs, scriptPaths, expectedNodeArgs } ) => {
45+ process . argv = [ '' , '' , ...processArgs ]
4446
45- const wiredRun = wire ( scriptPaths )
46- await wiredRun ( )
47+ const wiredRun = wire ( scriptPaths )
48+ await wiredRun ( )
4749
48- expect ( mockRun ) . toHaveBeenCalledWith (
49- 'node' ,
50- expectedNodeArgs ,
51- expect . any ( Object )
52- )
53- } )
50+ expect ( mockRun ) . toHaveBeenCalledWith (
51+ 'node' ,
52+ expectedNodeArgs ,
53+ expect . any ( Object )
54+ )
55+ }
56+ )
5457
5558 it . each ( [
5659 {
@@ -100,7 +103,7 @@ describe('wire: run', () => {
100103 expectedNodeArgs : [ '--inspect-brk' , 'path/to/jest.js' , '-i' ] ,
101104 } ,
102105 ] ) (
103- 'handles %j' ,
106+ 'handles command %j' ,
104107 async ( { processArgs, commands, scriptPaths, expectedNodeArgs } ) => {
105108 process . argv = [ '' , '' , ...processArgs ]
106109
0 commit comments