Skip to content

Commit ec6f5e9

Browse files
renovate[bot]erezrokahkodiakhq[bot]
authored
fix(deps): update dependency axios to v1 (#692)
[![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>
1 parent 356b677 commit ec6f5e9

File tree

3 files changed

+59
-45
lines changed

3 files changed

+59
-45
lines changed

package-lock.json

Lines changed: 52 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
},
6767
"dependencies": {
6868
"aws-sdk": "^2.678.0",
69-
"axios": "^0.27.0",
69+
"axios": "^1.0.0",
7070
"filter-obj": "^3.0.0",
7171
"jest-diff": "^28.0.0",
7272
"uuid": "^9.0.0"

src/utils/api.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
import { getResponse } from './api';
33

4-
jest.mock('axios');
4+
jest.mock('axios', () => {
5+
return {
6+
default: jest.fn(),
7+
};
8+
});
59

610
describe('api utils', () => {
711
test('should call axios with relevant parameters', async () => {
8-
const axios = require('axios');
12+
const { default: axios } = require('axios');
913

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

0 commit comments

Comments
 (0)