Having IDE support would really help writing tests. Since we have a lot of people liking typescript, something like DefinitelyTyped would help.
Great suggestion! I love it. We'll put it in our plan.
Alternatively, you can submit a PR, that would be very much appreciated.
I made the definitions, it's documented with examples, I'm waiting for the pull request to get approved, when it gets published, it will be used via npm install @types/detox
https://github.com/TareqElMasri/DefinitelyTyped/tree/master/types/detox
did this PR ever make it in?
@tachtevrenidis There are still review comments, but it looks great otherwise 馃憤
Goodnews everyone, the PR made it successfully, now the maintainers need to create npm package for @types/detox using Types publisher tool
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/25005#issuecomment-381774947
Hooray! Let's add this to docs and close this issue.
Fellas, it's up and running
https://www.npmjs.com/package/@types/detox
Awesome 馃憤 Let's close this issue then <3
Super awesome! Thanks for setting this up;
My only question is how to prevent the detox types from over-riding my jest types? Since detox overrides the jest object, it seems like when I'm trying to just write normal jest tests, TS still thinks the jest object is a detox one and so it complains for all the normal jest matchers/expects etc:
[ts] Property 'toEqual' does not exist on type 'Expect<any>'.
It's only small issue, so I don't feel like opening a new issue for it, but just curious if anyone has any ideas.