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 documentation for msw setup #459

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

Conversation

Maheima
Copy link
Contributor

@Maheima Maheima commented Mar 19, 2023

This PR resolves #456
Added the steps that need to be taken to use msw for testing in contributing.md file

@Maheima Maheima linked an issue Mar 19, 2023 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Mar 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
status-app ✅ Ready (Inspect) Visit Preview Mar 19, 2023 at 5:00PM (UTC)

Copy link
Contributor

@khushi818 khushi818 left a 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)
Copy link
Contributor

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)
Copy link
Contributor

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?

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.

Add documentation for msw setup
4 participants