Skip to content

refactor(test): add MSW mock server to setup #4853

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

Merged
merged 2 commits into from
Jul 28, 2025

Conversation

ilyaliao
Copy link
Member

@ilyaliao ilyaliao commented Jul 4, 2025

This PR adds the MSW mock server to the test setup.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 4, 2025
@ilyaliao ilyaliao force-pushed the refactor/test-msw branch 2 times, most recently from fcd9958 to f7a3828 Compare July 14, 2025 15:08
@ilyaliao
Copy link
Member Author

ilyaliao commented Jul 14, 2025

In relation to PR #4844 which is currently under review, this refactor addresses a potential issue where MSW might not be properly initialized due to the changes in how we import the mockServer.

This refactor follows the approach used by UnoCSS, moving the MSW setup to the global test configuration.

@ilyaliao ilyaliao force-pushed the refactor/test-msw branch from f7a3828 to a7739bb Compare July 17, 2025 15:37
@antfu antfu added this pull request to the merge queue Jul 28, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 28, 2025
Merged via the queue into vueuse:main with commit c92a8ff Jul 28, 2025
8 checks passed
@ilyaliao ilyaliao deleted the refactor/test-msw branch July 28, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy