Skip to content

Commit 2865a90

Browse files
committed
Fix tests
1 parent 88a9db0 commit 2865a90

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/host/src/node/gradle.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
/And follow this guide to build React Native from source/,
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

Comments
 (0)