@@ -50,7 +50,7 @@ QUnit.module('codemod-cli', function(hooks) {
5050 QUnit . test ( 'should generate a basic project structure' , async function ( assert ) {
5151 let result = await execa ( EXECUTABLE_PATH , [ 'new' , 'ember-qunit-codemod' ] ) ;
5252
53- assert . equal ( result . code , 0 , 'exited with zero' ) ;
53+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
5454 assert . deepEqual ( walkSync ( codemodProject . path ( ) ) , [
5555 'ember-qunit-codemod/' ,
5656 'ember-qunit-codemod/.eslintignore' ,
@@ -77,7 +77,7 @@ QUnit.module('codemod-cli', function(hooks) {
7777
7878 QUnit . test ( 'should pass for a basic project' , async function ( assert ) {
7979 let result = await execa ( 'yarn' , [ 'lint' ] ) ;
80- assert . equal ( result . code , 0 , 'exited with zero' ) ;
80+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
8181 } ) ;
8282 } ) ;
8383
@@ -107,7 +107,7 @@ QUnit.module('codemod-cli', function(hooks) {
107107 QUnit . test ( 'should generate a codemod' , async function ( assert ) {
108108 let result = await execa ( EXECUTABLE_PATH , [ 'generate' , 'codemod' , 'main' ] ) ;
109109
110- assert . equal ( result . code , 0 , 'exited with zero' ) ;
110+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
111111 assert . deepEqual ( walkSync ( codemodProject . path ( 'transforms' ) ) , [
112112 '.gitkeep' ,
113113 'main/' ,
@@ -131,7 +131,7 @@ QUnit.module('codemod-cli', function(hooks) {
131131 'this-dot-owner' ,
132132 ] ) ;
133133
134- assert . equal ( result . code , 0 , 'exited with zero' ) ;
134+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
135135 assert . deepEqual ( walkSync ( codemodProject . path ( 'transforms' ) ) , [
136136 '.gitkeep' ,
137137 'main/' ,
@@ -153,7 +153,7 @@ QUnit.module('codemod-cli', function(hooks) {
153153 await execa ( EXECUTABLE_PATH , [ 'generate' , 'fixture' , 'main' , 'this-dot-owner' ] ) ;
154154
155155 let result = await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
156- assert . equal ( result . code , 0 , 'exited with zero' ) ;
156+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
157157 } ) ;
158158
159159 QUnit . test ( 'should fail when input and output do not match' , async function ( assert ) {
@@ -174,7 +174,7 @@ QUnit.module('codemod-cli', function(hooks) {
174174 try {
175175 await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
176176 } catch ( result ) {
177- assert . notEqual ( result . code , 0 , 'exited with non-zero' ) ;
177+ assert . notEqual ( result . exitCode , 0 , 'exited with non-zero' ) ;
178178 }
179179 } ) ;
180180
@@ -214,7 +214,7 @@ QUnit.module('codemod-cli', function(hooks) {
214214 } ) ;
215215
216216 let result = await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
217- assert . equal ( result . code , 0 , 'exited with zero' ) ;
217+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
218218 } ) ;
219219
220220 QUnit . test ( 'transform should receive a file path in tests' , async function ( assert ) {
@@ -251,7 +251,7 @@ QUnit.module('codemod-cli', function(hooks) {
251251 } ) ;
252252
253253 let result = await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
254- assert . equal ( result . code , 0 , 'exited with zero' ) ;
254+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
255255 } ) ;
256256
257257 QUnit . test ( 'transform should receive a subfolder file path in tests' , async function ( assert ) {
@@ -290,7 +290,7 @@ QUnit.module('codemod-cli', function(hooks) {
290290 } ) ;
291291
292292 let result = await execa ( EXECUTABLE_PATH , [ 'test' ] ) ;
293- assert . equal ( result . code , 0 , 'exited with zero' ) ;
293+ assert . equal ( result . exitCode , 0 , 'exited with zero' ) ;
294294 } ) ;
295295 } ) ;
296296 } ) ;
0 commit comments