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

tests(crq): call setExtrasFn before using the urls #13910

Merged
merged 1 commit into from
Apr 27, 2022
Merged

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Apr 26, 2022

The helper function createChainsFromMockRecords takes a function setExtrasFn which modifies the network records made by default. Many tests will modify the urls, but the helper function uses the default url values when building the graph initiators (this is the old code):

image

This didn't seem to prevent any tests from working, but it was unexpected (I was debugging something by looking at the generated devtools log and found the mismatch of urls here odd).

One test did break from this, and I really don't understand it... so I opted to resolve the breakage by introducing a boolean parameter to this function to recreate the previous bad behavior.

@connorjclark connorjclark requested a review from a team as a code owner April 26, 2022 00:32
@connorjclark connorjclark requested review from adamraine and removed request for a team April 26, 2022 00:32
@connorjclark connorjclark merged commit c84ccdd into master Apr 27, 2022
@connorjclark connorjclark deleted the crq-test branch April 27, 2022 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants