Skip to content

Remove testURL hotfix from jest upgrade#22953

Merged
spalger merged 3 commits intoelastic:masterfrom
spalger:fix/jest/no-accidental-fetch
Sep 12, 2018
Merged

Remove testURL hotfix from jest upgrade#22953
spalger merged 3 commits intoelastic:masterfrom
spalger:fix/jest/no-accidental-fetch

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Sep 12, 2018

While upgrading jest in #22791 I had to set the testURL config to about:blank to prevent JSDom from executing ajax requests, but turns out fixing the problem isn't that hard and using the default allows simulate navigation, which I need to test #20696.

@spalger spalger added review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.0.0 v6.5.0 labels Sep 12, 2018
@spalger spalger requested a review from epixa September 12, 2018 04:03
@spalger spalger force-pushed the fix/jest/no-accidental-fetch branch from aa2db5f to 63b17f4 Compare September 12, 2018 04:07
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@epixa epixa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spalger spalger merged commit 9847e82 into elastic:master Sep 12, 2018
spalger pushed a commit to spalger/kibana that referenced this pull request Sep 12, 2018
* [jest] disable testURL hotfix

* [console] mock jquery.ajax in tests

* [ui/share] update urls in snapshots
spalger pushed a commit that referenced this pull request Sep 13, 2018
Backports the following commits to 6.x:
 - Remove testURL hotfix from jest upgrade  (#22953)
@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Sep 13, 2018

6.5/6.x: a82af28

@spalger spalger deleted the fix/jest/no-accidental-fetch branch September 13, 2018 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.5.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants