-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scc 3773/utils testing #31
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
One minor naming comment. Otherwise, I'd prefer if the jest.config file can be updated to exclude specific files rather than nest __test__
in test
. If it doesn't work then we can keep the nested directory but it makes it unclear why we need the nesting unless if you're writing tests.
) | ||
}) | ||
|
||
it("should combine query params", () => { |
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.
The more I look at this file the more complex the query object vs the url query is. All seems fine but just pointing out the complexity.
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.
how so?
Looks good! After our conversation, I think it makes sense to try to extend the jest configuration to allow for tests to be picked up in the pages directory. Could you look into that as part of this work? Also, it just occurred to be that since jest picks up any tests with the test.tsx extension, we could probably co-locate the tests in the same directory as the component rather than putting it in a What do you and @EdwinGuzman think? |
The other test PR resolves the comment above ✅ |
appUtils
,bibUtils,
drbUtils,searchUtils
.getSearchQuery
to exclude thesort_direction
parameter if none is supplied.