Skip to content

Commit

Permalink
fix(deps): update dependency axios to v1 (#692)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [axios](https://axios-http.com)
([source](https://togithub.com/axios/axios)) | [`^0.27.0` ->
`^1.0.0`](https://renovatebot.com/diffs/npm/axios/0.27.2/1.1.3) |
[![age](https://badges.renovateapi.com/packages/npm/axios/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/axios/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/axios/1.1.3/compatibility-slim/0.27.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/axios/1.1.3/confidence-slim/0.27.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - "before 3am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because
other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click
this checkbox. ⚠ **Warning**: custom changes will be lost.

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/erezrokah/aws-testing-library).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDEuMyIsInVwZGF0ZWRJblZlciI6IjMyLjI0MS4zIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: erezrokah <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 29, 2022
1 parent 356b677 commit ec6f5e9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 45 deletions.
94 changes: 52 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
"dependencies": {
"aws-sdk": "^2.678.0",
"axios": "^0.27.0",
"axios": "^1.0.0",
"filter-obj": "^3.0.0",
"jest-diff": "^28.0.0",
"uuid": "^9.0.0"
Expand Down
8 changes: 6 additions & 2 deletions src/utils/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import { getResponse } from './api';

jest.mock('axios');
jest.mock('axios', () => {
return {
default: jest.fn(),
};
});

describe('api utils', () => {
test('should call axios with relevant parameters', async () => {
const axios = require('axios');
const { default: axios } = require('axios');

const expected = { status: 500, data: { message: 'Hello World!' } };
axios.mockReturnValue(Promise.resolve(expected));
Expand Down

0 comments on commit ec6f5e9

Please sign in to comment.