Skip to content
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

Add support for MSW #21

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Add support for MSW #21

merged 2 commits into from
Dec 6, 2024

Conversation

Cito
Copy link
Member

@Cito Cito commented Dec 4, 2024

This PR adds support for MSW for local testing without backend.

  • We are following the same principle as in the legacy app.
  • Mock responses must be specified as static data - this avoids intricate re-implementation of the real backend that will deviate from reality anyway.
  • The responses are auto-converted to a list of handlers as expected by MSW.
  • I have added two demo responses and a demo usage in the home page component that should be removed later.
  • Support for authentication (needs some extra logic) will be done in a follow-up PR.

@Cito Cito force-pushed the feature/add-msw-GSI-1112 branch from cabc6c9 to 80e5b4f Compare December 4, 2024 14:48
Copy link
Contributor

@ac-jorellanaf ac-jorellanaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Cito Cito removed the request for review from SilverLinings89 December 6, 2024 07:51
@Cito Cito merged commit c4b8080 into main Dec 6, 2024
1 check passed
@Cito Cito deleted the feature/add-msw-GSI-1112 branch December 6, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants