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

Global expect is overridden #944

Closed
Tommos0 opened this issue Sep 23, 2018 · 2 comments
Closed

Global expect is overridden #944

Tommos0 opened this issue Sep 23, 2018 · 2 comments

Comments

@Tommos0
Copy link

Tommos0 commented Sep 23, 2018

Detox override's (jests) expect with its own version, which only works for detox matchers/testers. Since I'm running e2e tests, I'm also testing other things (e.g. get value from DB and just run expect(dbValue).toBe(expectedValue)), but these things don't work anymore. Would it be possible to change expect so it is still compatible with jests?

As a workaround I'm just using jestExpect = expect before initializing detox right now which works fine, but feels kind of hacky.

@noomorph
Copy link
Collaborator

@support
Copy link

support bot commented Sep 24, 2018

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.

@support support bot closed this as completed Sep 24, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants