@@ -11,24 +11,21 @@ describe("command line usage", () => {
1111 afterAll ( ( ) => cleanLocal ( ) ) ;
1212
1313 it ( "help" , async ( ) => {
14- const res = await exec ( "aeproject help" , { cwd } ) ;
15- assert . equal ( res . code , 0 ) ;
14+ await exec ( "aeproject help" , { cwd } ) ;
1615 } ) ;
1716
1817 it ( "version" , async ( ) => {
1918 const res = await exec ( "aeproject --version" , { cwd } ) ;
20- assert . equal ( res . code , 0 ) ;
2119 assert . include ( res . stdout , version ) ;
2220 } ) ;
2321
2422 for ( const folder of [ null , "testprojectfolder" ] ) {
2523 // eslint-disable-next-line vitest/valid-title
2624 it ( folder ? `init ${ folder } ` : "init" , async ( ) => {
27- const res = await exec (
25+ await exec (
2826 folder ? `aeproject init ${ folder } ` : "aeproject init" ,
2927 { cwd } ,
3028 ) ;
31- assert . equal ( res . code , 0 ) ;
3229
3330 // link to use local aeproject utils
3431 await linkLocalLib ( folder ) ;
@@ -48,8 +45,7 @@ describe("command line usage", () => {
4845 }
4946
5047 it ( "env" , async ( ) => {
51- const res = await exec ( "aeproject env" , { cwd } ) ;
52- assert . equal ( res . code , 0 ) ;
48+ await exec ( "aeproject env" , { cwd } ) ;
5349 assert . isTrue ( await isEnvRunning ( cwd ) ) ;
5450
5551 // don't run for all gh-action matrix tests
@@ -75,14 +71,11 @@ describe("command line usage", () => {
7571
7672 it ( "env --info" , async ( ) => {
7773 const res = await exec ( "aeproject env --info" , { cwd } ) ;
78- assert . equal ( res . code , 0 ) ;
79-
8074 print ( res . stdout ) ;
8175 } ) ;
8276
8377 it ( "test" , async ( ) => {
8478 const res = await exec ( "aeproject test" , { cwd } ) ;
85- assert . equal ( res . code , 0 ) ;
8679 assert . equal ( res . stderr , "" ) ;
8780 assert . include ( res . stdout , "2 passing" ) ;
8881 } ) ;
@@ -94,7 +87,6 @@ describe("command line usage", () => {
9487 // link to use local aeproject utils
9588 await linkLocalLib ( ) ;
9689
97- assert . equal ( res . code , 0 ) ;
9890 assert . equal ( res . stderr , "" ) ;
9991 assert . include (
10092 res . stdout ,
@@ -115,21 +107,18 @@ describe("command line usage", () => {
115107 ) ;
116108
117109 const resEnv = await exec ( "aeproject env" , { cwd } ) ;
118- assert . equal ( resEnv . code , 0 ) ;
119110 assert . isTrue ( await isEnvRunning ( cwd ) ) ;
120111
121112 assert . include ( resEnv . stdout , "aeternity/aeternity latest" ) ;
122113 assert . include ( resEnv . stdout , "aeternity/aesophia_http latest" ) ;
123114
124115 const resTest = await exec ( "aeproject test" , { cwd } ) ;
125- assert . equal ( resTest . code , 0 ) ;
126116 assert . include ( resTest . stdout , "2 passing" ) ;
127117 } else console . log ( "skipping next test for auxiliary test run" ) ;
128118 } ) ;
129119
130120 it ( "env --stop" , async ( ) => {
131- const res = await exec ( "aeproject env --stop" , { cwd } ) ;
132- assert . equal ( res . code , 0 ) ;
121+ await exec ( "aeproject env --stop" , { cwd } ) ;
133122 assert . isFalse ( await isEnvRunning ( cwd ) ) ;
134123 } ) ;
135124} ) ;
0 commit comments