Step 3 - Setup testURL in jest jsdom
- POC MR
- Step 1 - Remove IDE singleton store
- Step 2 - Defer IDE gql client creation
- Step 3 - Setup testURL in jest jsdom
- Step 4 - Setup mock server for IDE integration spec
- Step 5 - Add integration spec "user commits changes"
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