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

fix(README): Update axios example #2464

Merged
merged 4 commits into from Apr 26, 2023
Merged

fix(README): Update axios example #2464

merged 4 commits into from Apr 26, 2023

Conversation

depoulo
Copy link
Contributor

@depoulo depoulo commented Apr 17, 2023

This was added with #1711 but has changed with axios v1

README.md Outdated Show resolved Hide resolved
@mastermatt mastermatt merged commit 3feef40 into nock:main Apr 26, 2023
16 checks passed
@@ -1540,6 +1540,9 @@ import test from 'ava' // You can use any test framework.
//
// References:
// https://github.com/axios/axios/pull/5277
// https://github.com/nock/nock/issues/699#issuecomment-272708264
Copy link
Contributor Author

@depoulo depoulo Apr 27, 2023

Choose a reason for hiding this comment

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

Well this no longer works, which is the whole point of my PR, same for the link right below.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry @depoulo, that was me messing up the rebase. I'll remove those two lines in another PR I have open for approval atm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no worries, and thanks for merging!

@@ -1561,13 +1564,15 @@ test('can fetch test response', async t => {
For Nock + Axios + Jest to work, you'll have to also adapt your jest.config.js, like so:

```js
moduleNameMapper: {
const config = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍🏽

@depoulo depoulo deleted the patch-1 branch April 27, 2023 14:38
@github-actions
Copy link

🎉 This PR is included in version 13.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants