Skip to content

Step 3 - Setup testURL in jest jsdom

Paul Slaughter requested to merge 208800-step-2-3-fix-jest-environment into master

What does this MR do?

Our Jest jsdom environment hasn't handled window.location accurately because we never supplied it a testURL. This issue was identified while working on the frontend integration tests in !36103 (closed) (miragejs seems to do some setup based on the values in window.location).

So that we can reuse our TEST_HOST in the environment.js this MR also converts the test_constants.js to CommonJS format.

References

Edited by Paul Slaughter

Merge request reports