Replace jasmine-ajax with MSW and modernize test infrastructure - 1st pass#7767
Open
zoran995 wants to merge 6 commits intotest-async-functionfrom
Open
Replace jasmine-ajax with MSW and modernize test infrastructure - 1st pass#7767zoran995 wants to merge 6 commits intotest-async-functionfrom
zoran995 wants to merge 6 commits intotest-async-functionfrom
Conversation
Collaborator
Author
|
Deployment is failing as terriamap needs MSW as a dependency to build terriajs |
e1d6ae2 to
f69e364
Compare
Set up Mock Service Worker (msw) to intercept network requests at the Service Worker level, enabling gradual migration away from jasmine-ajax. Includes global Cesium Ion terrain handlers to prevent unhandled rejections from terrain loading.
…x to MSW Replace jasmine.Ajax.install/uninstall/stubRequest with MSW worker.use(http.get(...)) handlers. Removes afterEach cleanup since worker.resetHandlers() in SpecMain handles it globally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Part of #7768
Introduces Mock Service Worker (MSW) as the HTTP mocking layer and migrates a first batch of specs from jasmine-ajax to MSW handlers.
See #7766 - Add ADR for replacing jasmine-ajax with MSW for more details
Test me
Run the Karma test suite — all migrated specs should pass with MSW intercepting requests instead of jasmine-ajax.
Checklist
doc/.