@@ -12,11 +12,11 @@ describe(
1212 // Skipping these tests by default, as they download a lot and takes a long time
1313 { skip : process . env . ENABLE_GRADLE_TESTS !== "true" } ,
1414 ( ) => {
15- describe ( "checkHermesOverride task" , ( ) => {
15+ describe ( "linkNodeApiModules task" , ( ) => {
1616 it ( "should fail if REACT_NATIVE_OVERRIDE_HERMES_DIR is not set" , ( ) => {
1717 const { status, stdout, stderr } = cp . spawnSync (
1818 "sh" ,
19- [ "gradlew" , "react-native-node-api:checkHermesOverride " ] ,
19+ [ "gradlew" , "react-native-node-api:linkNodeApiModules " ] ,
2020 {
2121 cwd : TEST_APP_ANDROID_PATH ,
2222 env : {
@@ -45,15 +45,18 @@ describe(
4545 / A n d f o l l o w t h i s g u i d e t o b u i l d R e a c t N a t i v e f r o m s o u r c e / ,
4646 ) ;
4747 } ) ;
48- } ) ;
4948
50- describe ( "linkNodeApiModules task" , ( ) => {
5149 it ( "should call the CLI to autolink" , ( ) => {
5250 const { status, stdout, stderr } = cp . spawnSync (
5351 "sh" ,
5452 [ "gradlew" , "react-native-node-api:linkNodeApiModules" ] ,
5553 {
5654 cwd : TEST_APP_ANDROID_PATH ,
55+ env : {
56+ ...process . env ,
57+ // We're passing some directory which exists
58+ REACT_NATIVE_OVERRIDE_HERMES_DIR : __dirname ,
59+ } ,
5760 encoding : "utf-8" ,
5861 } ,
5962 ) ;
0 commit comments