-
Notifications
You must be signed in to change notification settings - Fork 21
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
Tests pass (but with console errors and warnings) #357
Conversation
src/theme.tsx
Outdated
@@ -149,6 +149,8 @@ export const condaStoreTheme = createTheme(baseTheme, { | |||
} | |||
}); | |||
|
|||
export const theme = condaStoreTheme; |
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.
If preferable I could change the import { theme }
lines in the tests to import { condaStoreTheme }
, instead of exporting theme
in addition to condaStoreTheme
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.
Is there any fundamental change/impact of one or the other approach aside from a double export?
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.
Heh, me asking the question was really a tell that I shouldn't alias the theme. I pushed a commit that fixes the tests without doing this. It wasn't hard.
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.
And the reason why I think I shouldn't alias it is because it could make it harder to trace where that particular theme is being used across the code base (much easier to search the string "condaStoreTheme" than "theme")
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.
it makes sense, thank you
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.
Thanks @gabalafou left a couple of questions mostly out of curiosity but none of these are blocking.
src/theme.tsx
Outdated
@@ -149,6 +149,8 @@ export const condaStoreTheme = createTheme(baseTheme, { | |||
} | |||
}); | |||
|
|||
export const theme = condaStoreTheme; |
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.
Is there any fundamental change/impact of one or the other approach aside from a double export?
It seems then we'd need a follow-up more focused PR to fix tests then @gabalafou ? |
Maybe. Probably. I'll look into it and get back to you. |
Thanks, @gabalafou. I will go ahead and merge this. Per #357 (comment), let's circle back on your findings and make a plan/open issues as needed |
I couldn't find any GitHub issue about the Jest tests being broken.
Description
This pull request:
yarn test
to run and exit without errorsPull request checklist