Skip to content

Commit f8a1616

Browse files
committed
Rename ferric-example package in test-app
1 parent cc80bbc commit f8a1616

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/test-app/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function loadTests({
7272
it("exports a callable sum function", () => {
7373
const exampleAddon =
7474
/* eslint-disable-next-line @typescript-eslint/no-require-imports -- TODO: Determine why a dynamic import doesn't work on Android */
75-
require("ferric-example") as typeof import("ferric-example");
75+
require("@react-native-node-api/ferric-example") as typeof import("@react-native-node-api/ferric-example");
7676
const result = exampleAddon.sum(1, 3);
7777
if (result !== 4) {
7878
throw new Error(`Expected 1 + 3 to equal 4, but got ${result}`);

apps/test-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@react-native-community/cli": "^20.0.1",
2626
"@react-native-community/cli-platform-android": "^20.0.1",
2727
"@react-native-community/cli-platform-ios": "^20.0.1",
28+
"@react-native-node-api/ferric-example": "*",
2829
"@react-native-node-api/node-addon-examples": "*",
2930
"@react-native-node-api/node-tests": "*",
3031
"@react-native/babel-preset": "0.81.1",
@@ -34,7 +35,6 @@
3435
"@types/mocha": "^10.0.10",
3536
"@types/react": "^19.1.0",
3637
"concurrently": "^9.1.2",
37-
"ferric-example": "^0.1.0",
3838
"mocha": "^11.6.0",
3939
"mocha-remote-cli": "^1.13.2",
4040
"mocha-remote-react-native": "^1.13.2",

0 commit comments

Comments
 (0)