@@ -10,7 +10,7 @@ const TEST_APP_ANDROID_PATH = path.join(MONOREPO_ROOT, "apps/test-app/android");
1010describe ( "Gradle tasks" , ( ) => {
1111 describe ( "checkHermesOverride task" , ( ) => {
1212 it ( "should fail if REACT_NATIVE_OVERRIDE_HERMES_DIR is not set" , ( ) => {
13- const { status, stderr } = cp . spawnSync (
13+ const { status, stdout , stderr } = cp . spawnSync (
1414 "sh" ,
1515 [ "gradlew" , "react-native-node-api:checkHermesOverride" ] ,
1616 {
@@ -23,7 +23,7 @@ describe("Gradle tasks", () => {
2323 } ,
2424 ) ;
2525
26- assert . notDeepEqual ( status , 0 ) ;
26+ assert . notDeepEqual ( status , 0 , `Expected failure: ${ stdout } ${ stderr } ` ) ;
2727 assert . match (
2828 stderr ,
2929 / R e a c t N a t i v e N o d e - A P I n e e d s a c u s t o m v e r s i o n o f H e r m e s w i t h N o d e - A P I e n a b l e d / ,
@@ -45,7 +45,7 @@ describe("Gradle tasks", () => {
4545
4646 describe ( "linkNodeApiModules task" , ( ) => {
4747 it ( "should call the CLI to autolink" , ( ) => {
48- const { status, stdout } = cp . spawnSync (
48+ const { status, stdout, stderr } = cp . spawnSync (
4949 "sh" ,
5050 [ "gradlew" , "react-native-node-api:linkNodeApiModules" ] ,
5151 {
@@ -54,7 +54,11 @@ describe("Gradle tasks", () => {
5454 } ,
5555 ) ;
5656
57- assert . equal ( status , 0 ) ;
57+ assert . equal (
58+ status ,
59+ 0 ,
60+ `Expected exit status 0, got ${ status } : ${ stdout } ${ stderr } ` ,
61+ ) ;
5862 assert . match ( stdout , / A u t o - l i n k i n g N o d e - A P I m o d u l e s / ) ;
5963 } ) ;
6064 } ) ;
0 commit comments