We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 271458c commit 44471b0Copy full SHA for 44471b0
packages/host/src/node/gradle.test.ts
@@ -42,4 +42,20 @@ describe("Gradle tasks", () => {
42
);
43
});
44
45
+
46
+ describe("linkNodeApiModules task", () => {
47
+ it("should call the CLI to autolink", () => {
48
+ const { status, stdout, stderr } = cp.spawnSync(
49
+ "sh",
50
+ ["gradlew", "react-native-node-api:linkNodeApiModules"],
51
+ {
52
+ cwd: TEST_APP_ANDROID_PATH,
53
+ encoding: "utf-8",
54
+ },
55
+ );
56
57
+ assert.equal(status, 0, `Expected failure: ${stdout} ${stderr}`);
58
+ assert.match(stdout, /Auto-linking Node-API modules/);
59
+ });
60
61
0 commit comments