Skip to content

test(core): avoid mocking got #5585

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
Jul 18, 2023
Merged

test(core): avoid mocking got #5585

merged 1 commit into from
Jul 18, 2023

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Jul 16, 2023

What's the problem this PR addresses?

One of our tests mocks got to validate that it is passed the correct URL which doesn't work when transpiled by esbuild.
We have a test that checks that the URL is correct using wrapNetworkRequest and various integration tests that should cover it.

Extracted from #5581

How did you fix it?

Removed the test that required mocking got.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis merged commit 0dc8b6a into master Jul 18, 2023
@arcanis arcanis deleted the merceyz/test/avoid-got-mock branch July 18, 2023 21:48
merceyz added a commit that referenced this pull request Oct 21, 2023
**What's the problem this PR addresses?**

One of our tests mocks `got` to validate that it is passed the correct
URL which doesn't work when transpiled by esbuild.
We have a test that checks that the URL is correct using
`wrapNetworkRequest` and various integration tests that should cover it.

Extracted from #5581

**How did you fix it?**

Removed the test that required mocking `got`.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.

(cherry picked from commit 0dc8b6a)
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