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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
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