-
Notifications
You must be signed in to change notification settings - Fork 79
chore(deps): update dependency axios-mock-adapter to v2 #743
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
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/axios-mock-adapter-2.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #743 +/- ##
=======================================
Coverage 87.13% 87.13%
=======================================
Files 48 48
Lines 1407 1407
Branches 297 297
=======================================
Hits 1226 1226
Misses 168 168
Partials 13 13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ca8454b to
a29b599
Compare
3ac06c5 to
486a2f8
Compare
2a26a19 to
40a1efd
Compare
6a38815 to
d1c2b2a
Compare
d1c2b2a to
052803d
Compare
2e5e2df to
bce5855
Compare
47bc93a to
413ff09
Compare
0eed409 to
62b991f
Compare
245d049 to
87e41e1
Compare
441af93 to
822afcd
Compare
54d5211 to
31b7746
Compare
10f4f5b to
1105c2a
Compare
488d44d to
6c9cca9
Compare
dfebd36 to
95351e0
Compare
50efa2d to
8e7c726
Compare
8e7c726 to
14b0d63
Compare
14b0d63 to
344046f
Compare
344046f to
cad448d
Compare
572f5b8 to
e026b61
Compare
e901b36 to
97661db
Compare
ee32af8 to
4d7ed8a
Compare
4d7ed8a to
fe22ec7
Compare
3012798 to
161fdf8
Compare
83deabf to
63b74e8
Compare
63b74e8 to
acac580
Compare
acac580 to
0a7bca8
Compare
0a7bca8 to
5e4f391
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.22.0->^2.0.0Release Notes
ctimmerm/axios-mock-adapter (axios-mock-adapter)
v2.1.0Compare Source
v2.0.0Compare Source
Breaking Changes 💥
Drop node versions lower than v18 (#390)
Change the parameters of the methods to align it to the one of axios. (#387)
The last parameter must be a config object with
{params, headers}instead of just the headers.If you've always only used two parameters, you won't have to change anything.
Methods with data param:
mock.onPost(url, data, headers)>mock.onPost(url, data, {params, headers})mock.onPut(url, data, headers)>mock.onPost(url, data, {params, headers})mock.onPatch(url, data, headers)>mock.onPatch(url, data, {params, headers})mock.onAny(url, data, headers)>mock.onAny(url, {data, params, headers})Methods without data param:
mock.onGet(url, {params}, headers)>mock.onGet(url, {params, headers})mock.onDelete(url, {params}, headers)>mock.onDelete(url, {params, headers})mock.onHead(url, {params}, headers)>mock.onHead(url, {params, headers})mock.onOptions(url, {params}, headers)>mock.onOptions(url, {params, headers})An error is reported if one accidentally passes the headers directly instead of `{headers: {}}.
e.g.
Error: Invalid config property Header-test provided to onPatch. Config: {"Header-test":"test-header"}Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.