Skip to content

docs(mocking): fix broken msw links #4714

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

Merged
merged 1 commit into from
Dec 9, 2023
Merged

docs(mocking): fix broken msw links #4714

merged 1 commit into from
Dec 9, 2023

Conversation

kettanaito
Copy link
Contributor

Hey! Thank you so much for recommending MSW in the Vitest docs!

I was reading through the docs and found a few issues/outdated links so I opened this pull request.

  • Changes node-request-interceptor mention to @mswjs/interceptors. That mention references a rather old library name. Let's stay up-to-date!
  • Updates the link to learn more about MSW to point to the /docs instead of /docs/recipes (which doesn't exist anymore).
  • Updates the graphql.query() example because that request handler expects an operation name, not the endpoint. Now it's correct.

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

- Changes `node-request-interceptor` mention to `@mswjs/interceptors`. That mention references a rather old library name. Let's stay up-to-date!
- Updates the link to learn more about MSW to point to the `/docs` instead of `/docs/recipes` (which doesn't exist anymore).
- Updates the `graphql.query()` example because that request handler expects an _operation name_, not the endpoint. Now it's correct.
Copy link

netlify bot commented Dec 9, 2023

Deploy Preview for fastidious-cascaron-4ded94 ready!

Name Link
🔨 Latest commit 4729a1b
🔍 Latest deploy log https://app.netlify.com/sites/fastidious-cascaron-4ded94/deploys/65743e5192f344000889bab2
😎 Deploy Preview https://deploy-preview-4714--fastidious-cascaron-4ded94.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kettanaito kettanaito changed the title Update mocking.md docs(mocking): fix broken msw links Dec 9, 2023
Copy link
Member

@sheremet-va sheremet-va left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM 👍🏻

@sheremet-va sheremet-va merged commit 2b911d2 into vitest-dev:main Dec 9, 2023
@kettanaito kettanaito deleted the patch-1 branch December 9, 2023 12:22
LorenzoBloedow pushed a commit to LorenzoBloedow/vitest that referenced this pull request Dec 19, 2023
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