Skip to content
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

Detox CI fails on device.launchapp #4018

Closed
1 of 2 tasks
asimyaramis opened this issue Apr 18, 2023 · 3 comments
Closed
1 of 2 tasks

Detox CI fails on device.launchapp #4018

asimyaramis opened this issue Apr 18, 2023 · 3 comments

Comments

@asimyaramis
Copy link

asimyaramis commented Apr 18, 2023

What happened?

My detox pipeline fails on macos vm device.launchapp

The pending request #-1000 ("isReady") has been rejected due to the following error:

The app has crashed, see the details below:

Exception was thrown: 
RCTFatalException: Unhandled JS Exception: TypeError: undefined is not a function, js engine: hermes
Unhandled JS Exception: TypeError: undefined is not a function, js engine: hermes, stack:


   beforeAll(async () => {
            await device.installApp();
         **line 4** : await device.launchApp({
       
          permissions: { notifications: "YES", camera: "YES", location: "always" },
         });
       });

  at Object.launchApp (src/login.test.js:4:18)

What was the expected behaviour?

No response

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.0.3
React Native version: 0.71
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: .16.16.0
Device model: Iphone 14
iOS version:
macOS version: latest
Xcode version: 14.2
Test-runner (select one): jest

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste your device.log here!

More data, please!

No response

@noomorph
Copy link
Collaborator

Sounds like you've included the test file inside your React Native app. Detox tests are meant to be executed in Node.js, not in Hermes mobile engine.

@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label Jun 10, 2023
@stale
Copy link

stale bot commented Jun 17, 2023

The issue has been closed for inactivity.

@stale stale bot closed this as completed Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants