Skip to content

Added implementation of V1 async_work runtime functions #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jul 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/rich-donuts-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-native-node-api-test-app": patch
"react-native-node-api": patch
---

Added implementation of async work runtime functions
11 changes: 11 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,18 @@ jobs:
adb reverse tcp:8090 tcp:8090
# Uninstall the app if already in the snapshot (unlikely but could result in a signature mismatch failure)
adb uninstall com.microsoft.reacttestapp || true
# Start logcat in background and save logs
adb logcat > emulator-logcat.txt 2>&1 &
LOGCAT_PID=$!
# Build, install and run the app
npm run test:android -- --mode Release
# Wait a bit for the sub-process to terminate, before terminating the emulator
sleep 5
# Stop logcat
kill $LOGCAT_PID || true
- name: Upload device logs
if: always()
uses: actions/upload-artifact@v4
with:
name: emulator-logcat
path: apps/test-app/emulator-logcat.txt
7 changes: 5 additions & 2 deletions apps/test-app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ function loadTests() {
for (const [suiteName, examples] of Object.entries(nodeAddonExamples)) {
describe(suiteName, () => {
for (const [exampleName, requireExample] of Object.entries(examples)) {
it(exampleName, () => {
requireExample();
it(exampleName, async () => {
const test = requireExample();
if (test instanceof Function) {
await test();
}
});
}
});
Expand Down
Loading
Loading