-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[HOLD] Add Automated Tests for Onyx / withOnyx #768
Conversation
@@ -46,5 +46,5 @@ export default new Logger({ | |||
clientLoggingCallback: (message) => { | |||
console.debug(message); | |||
}, | |||
isDebug: !CONFIG.IS_IN_PRODUCTION, | |||
isDebug: !CONFIG.IS_JEST_RUNNING && !CONFIG.IS_IN_PRODUCTION, |
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.
This fixes the issue where we were console logging after the test has finished and Jest complains locally.
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.
similar to #771 you might want to get someone else who's more familiar with this repo to also review b/c this is the first 2 times i've looked at any of this code.
@@ -11,6 +11,7 @@ export default { | |||
}, | |||
// eslint-disable-next-line no-undef | |||
IS_IN_PRODUCTION: Platform.OS === 'web' ? process.env.NODE_ENV === 'production' : !__DEV__, | |||
IS_JEST_RUNNING: typeof jest !== 'undefined', |
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.
depending on which is merged first you might get a conflict with this https://github.com/Expensify/ReactNativeChat/pull/771/files
or feel free to self-merge if you don't think you need another reviewer |
Ok worries thanks for the review! I will wait for @AndrewGable to give this a once over 🙇♂️ |
This is gonna need to be fixed up now that Ion is Onyx. Gonna keep these tests here for now. |
Just a heads up I'm going to close this in favor of Expensify/react-native-onyx#15 I think these tests should be in the |
Makes sense! |
Deploying with Cloudflare Pages
|
cc @AndrewGable
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/145436
Tests
Ion
to make sure the most basic features are working as intended.Screenshots