wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.12k stars 1.91k forks source link

TS: Detox types clashing with Jest #2610

Open saihaj opened 3 years ago

saihaj commented 3 years ago

Other than --skipLibCheck how can this be fixed?

image

I was told https://github.com/DefinitelyTyped/DefinitelyTyped/issues/48309#issuecomment-756623915 that typing have been moved here. I am using detox v18.2.1 and this still exists. I can PR this in if I can get some help :)

support[bot] commented 3 years ago

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visibility. We'll take a look at it.

For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community.

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

LeoNatan commented 3 years ago

@noomorph Might be a bug actually, not Stack Overflow.

noomorph commented 3 years ago

@LeoNatan, this is a known issue. I'll try to check soon if Jest has no-globals typings since 26.5.x, but the problem here is dual. They export globals and we export globals, and our signatures cannot be merged easily using declaration merging due to incompatibities.

LeoNatan commented 3 years ago

JS 🤦‍♂️

How did Definitely solved this problem?

noomorph commented 3 years ago

It never solved this.

noomorph commented 2 years ago

It's a good candidate to be solved in Detox 21.x

d4vidi commented 2 years ago

Let's discuss in the associated discussion then! 👌🏻

stale[bot] commented 2 years ago

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 reporsitory, read this discussion.

stale[bot] commented 2 years ago

The issue has been closed for inactivity.

noomorph commented 1 year ago

It makes sense to plan it if we ever start the thing with Remote Detox.

I suggest to migrate to jest.extend

noomorph commented 1 year ago

Will be solved in Detox 22. TODO: add to the epic

noomorph commented 10 months ago

Related to #4223.