-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
feat: add new injectGlobals
config and CLI option to disable injecting global variables into the runtime
#10484
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Docs will need a cut for next minor version
@SimenB, looks like after this pull request the initialisation of the globals was moved to a later stage. Speaking In the recent 26.5.1, the first event where I can see the globals available, is now Was that an intended change, or an unplanned side effect? You see, Detox custom environment has been overriding Jest's Could you recommend something in this case, i.e.:
Thanks in advance! |
@noomorph sorry about that, not on purpose at all. Restoring original timing of injection sounds like the correct fix. Can do so tomorrow (happy to take a PR, if you're up for it) |
@noomorph could you open up an issue for your use case of overriding |
@SimenB, is your request still relevant? To me it looks like P. S. At the moment, if Detox is initialized with |
Main issue is if people do |
@SimenB, okay, 🤔 I'll see what we can do documentation-wise. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #10481
Test plan
E2E test added