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

Feature/mock server setup for dev #11

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

abdullahbayram
Copy link
Owner

Summary

This pull request includes the following changes and improvements:

Input Component Fixes

  • Resolved forwardRef console error for the Input component.
  • Cleaned handlers and split utility functions into handlers.util.
  • Updated related tests.

Mocking and Testing Enhancements

  • Enabled mock-server-worker (MSW) for development and testing environments.
  • Refactored sampleResponse to use products.json and updated associated tests.
  • Replaced msg with message in mocks, backend, and customQuery, fixing related tests.
  • Suppressed symbolicate false flag for unrequested MSW requests.

App Structure and File Adjustments

  • Split AppRoot from App for better structure and maintainability.
  • Registered root components with MSW integration.
  • Relocated mock files to ensure Metro bundler compatibility.
  • Fixed MSW version to address Hermes TransformStream error.

- Split AppRoot from App components for better structure.
- Structured App component with MSW and registered root component.
- Moved mock files to ensure visibility by Metro bundler in development mode.
- Fixed msw version to address Hermes TransformStream error.
Fixed forwardRef console error for Input component.
Suppressed symbolicate false flag in MSW for unrequested requests.
Refactored sampleResponse variable to use products.json and updated related tests.
Replaced msg with message in mock, backend, and customQuery, fixing related tests.
Cleaned handlers and split utility functions into handlers.util.
@abdullahbayram abdullahbayram merged commit f70ea27 into main Dec 30, 2024
2 checks passed
@abdullahbayram abdullahbayram deleted the feature/mock-server-setup-for-dev branch December 30, 2024 13:38
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.

1 participant