-
Notifications
You must be signed in to change notification settings - Fork 152
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 documentation for msw setup #459
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. ✨ I read the docs I found it is only for development right?
@@ -16,9 +16,13 @@ Read <a href="https://github.com/Real-Dev-Squad/website-welcome/blob/main/CONTRI | |||
### Development | |||
To run the project `yarn run dev`. | |||
|
|||
#### To run the project with Mocked APIs | |||
#### To run the project with Mocked APIs we use [Mock service worker](https://mswjs.io/docs/) | |||
- Configure your development browser to trust `https://localhost` with invalid certificate, follow [this doc](https://mswjs.io/docs/recipes/using-local-https#trust-insecure-localhost) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to do just this to setup
msw locally?
@@ -16,9 +16,13 @@ Read <a href="https://github.com/Real-Dev-Squad/website-welcome/blob/main/CONTRI | |||
### Development | |||
To run the project `yarn run dev`. | |||
|
|||
#### To run the project with Mocked APIs | |||
#### To run the project with Mocked APIs we use [Mock service worker](https://mswjs.io/docs/) | |||
- Configure your development browser to trust `https://localhost` with invalid certificate, follow [this doc](https://mswjs.io/docs/recipes/using-local-https#trust-insecure-localhost) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the use of https://localhost here?
This PR resolves #456
Added the steps that need to be taken to use msw for testing in contributing.md file